This is the mail archive of the
mailing list for the Cygwin project.
Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.
>> Anyway, I had a look into why the dosfilewarning prints the wrong
>> filename: it calls small_sprintf to print the message, and
>> small_sprintf uses the ANSI version of WriteFile to write to
>> STD_ERROR_HANDLE, so it ends up interpreting a UTF-8 string as GBK.
>> Seems sys_mbstowcs and WriteFileW are needed there.
> There's no such thing as a WriteFileW function.
D'oh, of course. I confused it with WriteConsole, which does have a
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple