From 572327e088c091e7958ecda799f3f8c7e878f2ad Mon Sep 17 00:00:00 2001 From: Takuji Tanaka Date: Sat, 6 Jul 2013 01:42:28 +0000 Subject: 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 --- Build/source/texk/kpathsea/progname.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Build/source') 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, -- cgit v1.2.3