Corinna Vinschen wrote: >- cygwin_conv_path and cygwin_conv_path_list: In CCP_WIN_A_TO_POSIX and > CCP_POSIX_TO_WIN_A conversions, use the current Windows ANSI or OEM > charset, depending on the return value of AreFileApisANSI. Up to Cygwin > 1.7.9, both conversions used the current Cygwin charset for the conversion.
Is that the right thing to do? I have LANG=C.UTF-8. If I pass a Windows-style filename on the command line, it's passed as UTF-8. How do I then convert that to Unix-style, UTF-8? Example program attached. Run with for example "testpath åäö.txt" and "testpath 'C:\WINDOWS\åäö.txt'" I tried with the snapshot DLL (not any other files) from 20111207 and got garbage (double-encoded UTF-8).
testpath.c
Description: Binary data
-- 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