From af4d2552d2304ca61df83692166d017df033467d Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Fri, 23 Nov 2018 09:42:40 +0000 Subject: support non-ascii values for variables (w32 only) git-svn-id: svn://tug.org/texlive/trunk@49229 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/knj.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Build/source/texk/kpathsea/knj.c') diff --git a/Build/source/texk/kpathsea/knj.c b/Build/source/texk/kpathsea/knj.c index 09d718ce8e2..6db6262161f 100644 --- a/Build/source/texk/kpathsea/knj.c +++ b/Build/source/texk/kpathsea/knj.c @@ -1,6 +1,6 @@ /* knj.c: check for 2-Byte Kanji (CP 932, SJIS) codes. - Copyright 2010, 2016 Akira Kakuto. + Copyright 2010, 2016, 2018 Akira Kakuto. Copyright 2013, 2016 TANAKA Takuji. This library is free software; you can redistribute it and/or @@ -244,7 +244,12 @@ kpathsea_get_command_line_args_utf8 (kpathsea kpse, const_string enc, int *p_ac, hStderr = GetStdHandle( STD_ERROR_HANDLE ); #endif /* DEBUG */ kpse->File_system_codepage = CP_UTF8; +/* + IS_KANJI() in the CP932-like system seems to be necessary to + support non-ascii values for variables in the case of + command_line_encoding = utf-8. kpse->Is_cp932_system = 0; +*/ argvw = CommandLineToArgvW(GetCommandLineW(), &argcw); argc = argcw; argv = xmalloc(sizeof(char *)*(argcw+1)); -- cgit v1.2.3