diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-12-01 15:05:15 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-12-01 15:05:15 +0000 |
commit | b91ea14a043007a08ec25199870aa0a3a3fbbc1f (patch) | |
tree | 9e4607d05889e3ab457a8f3c137598907b413b25 /Build/source/texk/kpathsea/progname.c | |
parent | 2fdc70b46aa72675253c5d8b51fcab18d509af38 (diff) |
Support KANJI file name in (e)up-TeX on Windows (T. Tanaka)
git-svn-id: svn://tug.org/texlive/trunk@32288 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/progname.c')
-rw-r--r-- | Build/source/texk/kpathsea/progname.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/kpathsea/progname.c b/Build/source/texk/kpathsea/progname.c index ba43bd8679f..5952936579b 100644 --- a/Build/source/texk/kpathsea/progname.c +++ b/Build/source/texk/kpathsea/progname.c @@ -501,12 +501,13 @@ kpathsea_set_program_name (kpathsea kpse, const_string argv0, } #if defined(WIN32) - cp = GetOEMCP(); + cp = GetACP(); if (cp == 932 || cp == 936 || cp == 950) { is_cp932_system = cp; } else is_cp932_system = 0; + file_system_codepage = AreFileApisANSI() ? GetACP() : GetOEMCP(); #if defined(__MINGW32__) /* Set various info about user. Among many things, |