Neal Norwitz wrote: > [EMAIL PROTECTED] ~/build/python/svn/clean-ish $ LC_ALL=de_DE ./python > >>>>import locale >>>>locale.setlocale(locale.LC_ALL) > > 'C' > >>>>locale.setlocale(locale.LC_ALL, 'de_DE') > > 'de_DE' > > I would have expected the first call to setlocale() to return de_DE.
No, it shouldn't. We are providing C semantics here, which is that no locale functionality is activated unless the application explicitly asks for it. > Is the first call to > setlocale() supposed to return C? If so, always? The return value is implementation-defined, but yes, it is supposed to return the "C" locale (which is synonymous to the "POSIX" locale on a POSIX system). > I was looking for > some way for the initial call to setlocale() to return de_DE or > whatever other locale I set. That shouldn't happen. Regards, Martin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com