diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-04-29 22:02:25 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-04-29 22:02:25 +0000 |
commit | 990cf1786b9f2dd628ec270aae0f8a253cd06ae4 (patch) | |
tree | 35bb37f1b12de5e902668570c817151f97e83d96 /Master | |
parent | 843b98a6ee1b79b993fbba204c6065ec991bc561 (diff) |
improve support of non-ascii name for TeXWorks (w32)
git-svn-id: svn://tug.org/texlive/trunk@59025 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/bin/win32/runscript.tlu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Master/bin/win32/runscript.tlu b/Master/bin/win32/runscript.tlu index faf54a9f3cf..f2a75cf4999 100755 --- a/Master/bin/win32/runscript.tlu +++ b/Master/bin/win32/runscript.tlu @@ -408,7 +408,7 @@ end -- creates directory or directory hierarchy local function mkdir_plus(dir) - if lfs.mkdir(dir) then + if lfs.mkdir(chgstrcp.syscptoutf8(dir)) then return true end -- try with system's mkdir in case we need to create intermediate dirs too @@ -825,7 +825,7 @@ elseif progname == 'texworks' then os.setenv('TW_INIPATH', TW_INIPATH) if (TW_INIPATH and lfs.attributes(chgstrcp.syscptoutf8(TW_INIPATH), 'mode') ~= 'directory') then -- TeXworks needs directory holding its configuration to exist - assert(mkdir_plus(chgstrcp.syscptoutf8(TW_INIPATH))) + assert(mkdir_plus(TW_INIPATH)) end ARGV = {[0]=TEXDIR..'/tlpkg/texworks/texworks.exe', 'texworks'} elseif progname == 'tlgs' then |