Mercurial > hg > sidinfo
changeset 273:2437436b6129
Inform user of the character set conversion in use (or not in use) with verbosity level of 2.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 06 Jan 2020 01:37:21 +0200 |
parents | 763623493f59 |
children | a5bc27d26174 |
files | sidinfo.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/sidinfo.c Mon Jan 06 01:03:49 2020 +0200 +++ b/sidinfo.c Mon Jan 06 01:37:21 2020 +0200 @@ -1327,13 +1327,14 @@ setUseChConv = setLang != NULL && strcmp(setLang, SET_DEF_CHARSET) == 0; #endif - th_free(setLang); - // Parse command line arguments if (!th_args_process(argc, argv, optList, optListN, argHandleOpt, NULL, OPTH_ONLY_OPTS)) goto out; + THMSG(2, "Requested output LANG='%s', use charset conversion=%s\n", + setLang, setUseChConv ? "yes" : "no"); + if (optOneLineFieldSep != NULL) { // For one-line format, disable parsing and prefixes @@ -1485,6 +1486,8 @@ iconv_close(setChConv); #endif + th_free(setLang); + siClearStack(&optFormat); th_free(setHVSCPath); th_free(setSLDBPath);