# HG changeset patch # User Matti Hamalainen # Date 1578267441 -7200 # Node ID 2437436b612965efd18b30f0779baf594766c693 # Parent 763623493f59177a2f25812f14e465de8a14b7eb Inform user of the character set conversion in use (or not in use) with verbosity level of 2. diff -r 763623493f59 -r 2437436b6129 sidinfo.c --- 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);