From 01363cc9878d23fedc174cc287f0bf8313b65e13 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Wed, 28 Apr 2021 23:10:55 +0000 Subject: support non-ascii username for TeXworks (w32 only) git-svn-id: svn://tug.org/texlive/trunk@59018 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/win32/runscript.tlu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Master') diff --git a/Master/bin/win32/runscript.tlu b/Master/bin/win32/runscript.tlu index 8037edb7fea..faf54a9f3cf 100755 --- a/Master/bin/win32/runscript.tlu +++ b/Master/bin/win32/runscript.tlu @@ -823,9 +823,9 @@ elseif progname == 'texworks' then local TW_INIPATH = kpse.var_value('TW_INIPATH') or TW_LIBPATH os.setenv('TW_LIBPATH', TW_LIBPATH) os.setenv('TW_INIPATH', TW_INIPATH) - if (TW_INIPATH and lfs.attributes(TW_INIPATH, 'mode') ~= 'directory') then + if (TW_INIPATH and lfs.attributes(chgstrcp.syscptoutf8(TW_INIPATH), 'mode') ~= 'directory') then -- TeXworks needs directory holding its configuration to exist - assert(mkdir_plus(TW_INIPATH)) + assert(mkdir_plus(chgstrcp.syscptoutf8(TW_INIPATH))) end ARGV = {[0]=TEXDIR..'/tlpkg/texworks/texworks.exe', 'texworks'} elseif progname == 'tlgs' then -- cgit v1.2.3