2009/12/3 Thomas Dickey: >> From >> http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html, >> §7.2: >> >> "The tables in Locale Definition describe the characteristics and >> behavior of the POSIX locale for data consisting entirely of >> characters from the portable character set and the control character >> set. For other characters, the behavior is unspecified." >> >> This means that characters 0..127 have to be treated as ASCII, but >> beyond that an implementation can do what it wants. And on Cygwin 1.7, >> plain "C" actually does imply UTF-8, which happily is >> backward-compatible with ASCII. > > That's an interpretation that so far hasn't been blessed by the standards > people. Any discussion of this topic should mention that, as a caveat.
Fair point. It also means that apps are entitled to assume that "C" supports no more than ASCII, which is why Cygwin 1.7's default locale is C.UTF-8. A default locale setting based on the user's language selection would be better, but we don't have that (yet?). Andy -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
