changeset 5724:74e24bf4fa50

texinfo: Support makeinfo being installed on path with non-ASCII characters on Windows. * src/mingw-texinfo-2-makeinfo-non-ASCII-perl.patch: Add new patch. * dist-files.mk: Add new file to list.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 05 Apr 2021 12:41:03 +0200
parents d193b278c496
children 253afe03d71a
files dist-files.mk src/mingw-texinfo-2-makeinfo-non-ASCII-perl.patch
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dist-files.mk	Sat Apr 03 07:45:30 2021 -0400
+++ b/dist-files.mk	Mon Apr 05 12:41:03 2021 +0200
@@ -349,6 +349,7 @@
   mingw-portaudio-1-pkgconfig.patch \
   mingw-s2tc-1-fixes.patch \
   mingw-texinfo-1-fixes.patch \
+  mingw-texinfo-2-makeinfo-non-ASCII-perl.patch \
   mingw-utils-1-portability-fix.patch \
   mingw-w64-1-float-h.patch \
   mingw-w64.mk \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/mingw-texinfo-2-makeinfo-non-ASCII-perl.patch	Mon Apr 05 12:41:03 2021 +0200
@@ -0,0 +1,16 @@
+"perl" cannot run scripts in paths with non-ASCII characters on Windows.
+To work around that, change to the directory containing the script first,
+then call it without path.
+FIXME: Could changing the directory have negative side effects for the
+"makeinfo" script?
+
+diff --git "a/util/makeinfo.bat" "b/util/makeinfo.bat"
+index 5ae4286..6a51502 100644
+--- "a/util/makeinfo.bat"	
++++ "b/util/makeinfo.bat"	
+@@ -1,2 +1,4 @@
+ @echo off
+-perl "%~dpn0" %*
++%~d0
++cd "%~dp0"
++perl "%~n0" %*