Message247322
| Author | serhiy.storchaka |
|---|---|
| Recipients | Dmitry.Jemerov, barry-scott, loewis, ned.deily, r.david.murray, ronaldoussoren, serhiy.storchaka, vstinner |
| Date | 2015-07-25.09:22:42 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1437816162.34.0.420753369462.issue18378@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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 | |