This is the mail archive of the
cygwin
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.
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