diff options
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/knj.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index df7baac43d1..bc54d08172d 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,8 @@ +2014-01-08 TANAKA Takuji <KXD02663@nifty.ne.jp> + + * knj.c: Allow encoding name "" for non-utf8 command line. + Warn if unknown encoding. (Windows only) + 2014-01-04 Peter Breitenlohner <peb@mppmu.mpg.de> * knj.c: Keep non-utf8 command line. Avoid compiler warnings. diff --git a/Build/source/texk/kpathsea/knj.c b/Build/source/texk/kpathsea/knj.c index 8cb5ff54817..b6112ed6258 100644 --- a/Build/source/texk/kpathsea/knj.c +++ b/Build/source/texk/kpathsea/knj.c @@ -169,7 +169,8 @@ get_command_line_args_utf8 (const_string enc, int *p_ac, char ***p_av) int argc; string *argv; - if (!enc) return; + if (!enc || !strncmp(enc,"",1)) return; + #ifdef DEBUG fprintf(stderr, "command_line_encoding (%s)\n", enc); #endif /* DEBUG */ @@ -199,5 +200,7 @@ get_command_line_args_utf8 (const_string enc, int *p_ac, char ***p_av) argv[argcw] = NULL; *p_ac = argc; *p_av = argv; + } else { + WARNING1("kpathsea: Ignoring unknown encoding `%s'", enc); } } |