Eric Blake: >> A rather important exception is 'ls', which seems to have its own >> hardcoded limitation to 7 bits for the C locale: anything non-ASCII is >> shown as '? there'. > > That's only because the current build of cygwin ls pre-dates a lot of the > locale support. I'm hoping that when I get time to build coreutils 7.5, > that ls will start printing characters marked printable in the current locale.
Don't worry, on 1.7 it already works fine in locales other than "C". And it turns out that the restriction with the latter is due to newlib being inconsistent: whereas the conversion functions use ISO-8859-1, the ctype functions insist on ASCII, i.e. the isbla() functions return 0 for anything above 0x7F. So in the C locale we've currently got UTF-8 for filenames, ISO-8859-1 for the console and multibyte conversions, and ASCII for the ctype functions. 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