# HG changeset patch # User Markus Mützel # Date 1617619263 -7200 # Node ID 74e24bf4fa5009ddac3dcf9ed8879a67db223c27 # Parent d193b278c49689cbd67669fe303c7ff7c44c7f36 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. diff -r d193b278c496 -r 74e24bf4fa50 dist-files.mk --- 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 \ diff -r d193b278c496 -r 74e24bf4fa50 src/mingw-texinfo-2-makeinfo-non-ASCII-perl.patch --- /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" %*