Message247322
Needed tests.
With the patch:
$ LC_CTYPE=UTF-8 ./python
>>> import locale
>>> locale.getdefaultlocale()
(None, 'UTF-8')
>>> locale.getpreferredencoding()
'ANSI_X3.4-1968'
>>> locale.getlocale()
(None, None)
$ LC_CTYPE=en_US_UTF-8 ./python
>>> import locale
>>> locale.getdefaultlocale()
('en_US', 'UTF-8')
>>> locale.getpreferredencoding()
'UTF-8'
>>> locale.getlocale()
('en_US', 'UTF-8')
I think getpreferredencoding() and getlocale() should return the UTF-8 encoding. |
|
Date |
User |
Action |
Args |
2015-07-25 09:22:42 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, loewis, barry-scott, ronaldoussoren, vstinner, ned.deily, r.david.murray, Dmitry.Jemerov |
2015-07-25 09:22:42 | serhiy.storchaka | set | messageid: <1437816162.34.0.420753369462.issue18378@psf.upfronthosting.co.za> |
2015-07-25 09:22:42 | serhiy.storchaka | link | issue18378 messages |
2015-07-25 09:22:42 | serhiy.storchaka | create | |
|