bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OSError: [WinError 193] %1 is not a valid Win32 application


From: Bruno Haible
Subject: Re: OSError: [WinError 193] %1 is not a valid Win32 application
Date: Thu, 02 May 2024 00:41:16 +0200

Hi Collin,

> I can create
> testdirs on Cygwin and MSYS2. Perhaps it is best to clarify
> gnulib-tool.py is only supported there on Windows?

Yes, feel free to add a bit of text about it to the DEPENDENCIES file.
Other environments than Cygwin and MSYS2 don't need to be considered,
since the user will also need sh, autoconf, automake, perl, gcc, and so on.

> In this case shebang lines cause the issue. But there is also other
> considerations. Windows shells use a different way of quoting, not
> sure about encoding. Also gnulib-tool.py executes sed, find, patch, so
> I'm not too sure how that works in Windows shells.

You can assume that 'sh' (sh.exe) will be found in PATH. You don't
need to think about cmd.exe or PowerShell — this would be a waste of time.
Just rely on 'sh'.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]