X11R7.5 and C.UTF-8

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Dec 3 13:48:00 GMT 2009


On Dec  3 13:16, Andy Koppe wrote:
> 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?).

Try the attached.  Note:  It has a hidden "--testloop" option...


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getlocale.cc
Type: text/x-c++src
Size: 4612 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20091203/c0cdb3cf/attachment.bin>
-------------- next part --------------
--
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/


More information about the Cygwin-xfree mailing list