From 504fbeeb9b6e7db4c9dfac9c54489b19a33a9c67 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 20 Mar 2008 19:27:44 +0100 Subject: [PATCH] Move unrelated UTF-8 setup code out of parse_options --- tig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.30.2