From: Jonas Fonseca Date: Thu, 20 Mar 2008 18:27:44 +0000 (+0100) Subject: Move unrelated UTF-8 setup code out of parse_options X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=504fbeeb9b6e7db4c9dfac9c54489b19a33a9c67;p=tig.git Move unrelated UTF-8 setup code out of parse_options --- diff --git a/tig.c b/tig.c index b3a4e8d..36f03c2 100644 --- a/tig.c +++ b/tig.c @@ -605,9 +605,6 @@ parse_options(int argc, char *argv[]) opt_cmd[buf_size] = 0; } - if (*opt_encoding && strcasecmp(opt_encoding, "UTF-8")) - opt_utf8 = FALSE; - return TRUE; } @@ -5148,6 +5145,9 @@ main(int argc, char *argv[]) if (!opt_git_dir[0]) die("Not a git repository"); + if (*opt_encoding && strcasecmp(opt_encoding, "UTF-8")) + opt_utf8 = FALSE; + if (*opt_codeset && strcmp(opt_codeset, opt_encoding)) { opt_iconv = iconv_open(opt_codeset, opt_encoding); if (opt_iconv == ICONV_NONE)