diff options
author | Takuji Tanaka <KXD02663@nifty.ne.jp> | 2013-07-06 01:42:28 +0000 |
---|---|---|
committer | Takuji Tanaka <KXD02663@nifty.ne.jp> | 2013-07-06 01:42:28 +0000 |
commit | 572327e088c091e7958ecda799f3f8c7e878f2ad (patch) | |
tree | 65bfab35add3eb92e5c29ffb3e9f5b7610a0a7d3 | |
parent | 5d4166d22f410b12f8c5178f82cab1fd20d80aa4 (diff) |
CP936, CP950 (simplified / traditional Chinese) also have 0x5c problem similar to CP932 (Japanese)
git-svn-id: svn://tug.org/texlive/trunk@31111 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/kpathsea/progname.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/progname.c b/Build/source/texk/kpathsea/progname.c index 9fcc44d8cf9..dd65d5247d7 100644 --- a/Build/source/texk/kpathsea/progname.c +++ b/Build/source/texk/kpathsea/progname.c @@ -491,7 +491,7 @@ kpathsea_set_program_name (kpathsea kpse, const_string argv0, #ifdef WIN32 string debug_output = getenv("KPATHSEA_DEBUG_OUTPUT"); string append_debug_output = getenv("KPATHSEA_DEBUG_APPEND"); - int err, olderr; + int err, olderr, cp; #endif /* Set debugging stuff first, in case we end up doing debuggable stuff @@ -501,7 +501,8 @@ kpathsea_set_program_name (kpathsea kpse, const_string argv0, } #if defined(WIN32) - is_cp932_system = (GetACP () == 932); + cp = GetACP(); + is_cp932_system = (cp == 932 || cp == 936 || cp == 950); #if defined(__MINGW32__) /* Set various info about user. Among many things, |