texlive[59025] Master/bin/win32/runscript.tlu: improve support of

commits+kakuto at tug.org commits+kakuto at tug.org
Fri Apr 30 00:02:25 CEST 2021


Revision: 59025
          http://tug.org/svn/texlive?view=revision&revision=59025
Author:   kakuto
Date:     2021-04-30 00:02:25 +0200 (Fri, 30 Apr 2021)
Log Message:
-----------
improve support of non-ascii name for TeXWorks (w32)

Modified Paths:
--------------
    trunk/Master/bin/win32/runscript.tlu

Modified: trunk/Master/bin/win32/runscript.tlu
===================================================================
--- trunk/Master/bin/win32/runscript.tlu	2021-04-29 21:18:32 UTC (rev 59024)
+++ trunk/Master/bin/win32/runscript.tlu	2021-04-29 22:02:25 UTC (rev 59025)
@@ -408,7 +408,7 @@
 
 -- 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 @@
   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



More information about the tex-live-commits mailing list.