[New-bugs-announce] [issue12699] strange behaviour of locale.getlocale() -> None, None

Feth AREZKI report at bugs.python.org
Fri Aug 5 22:23:11 CEST 2011


New submission from Feth AREZKI <feth at tuttu.info>:

Tested on linux arch & debian, freeBSD and MacOSX :

% python2.7
[...]
>>> import locale
>>> locale.getlocale()
(None, None)
>>> locale.getlocale(locale.LC_CTYPE)  #or any type
(None, None)

% python3.2
[...]
>>> import locale
>>> locale.getlocale()
('fr_FR', 'UTF-8')

We feel this is strange!

----------
messages: 141683
nosy: alexis, feth
priority: normal
severity: normal
status: open
title: strange behaviour of locale.getlocale() -> None, None
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12699>
_______________________________________


More information about the New-bugs-announce mailing list