1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.
Andy Koppe
andy.koppe@gmail.com
Sat Feb 20 09:29:00 GMT 2010
Corinna Vinschen:
>> 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
Unicode version.
Andy
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list