> > Cygwin's setlocale function only supports the "C" locale. > > I am a bit suprised that ASCII is returned rather than the system's > default > > encoding. > > If I understand the situation correctly, you shouldn't be. The C > locale is defined to use ASCII.
I think you don't. I'm certain that standard C doesn't define the C locale to be ASCII, and I believe POSIX doesn't, either. What they do define is that the "basic execution character set" must be in it (or some such). However, in absence of better knowledge, assuming ASCII is the best choice that the library can make. Regards, Martin _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com