[issue1158490] locale fails if LANGUAGE has multiple locales

2017-03-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> out of date stage: patch review -> resolved status: pending -> closed ___ Python tracker ___ __

[issue1158490] locale fails if LANGUAGE has multiple locales

2014-10-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me that this issue is already gone. >>> import os, locale >>> os.environ['LANGUAGE'] = 'en_DK:en_GB:en_US:en' >>> locale.getdefaultlocale(['LANGUAGE']) ('en_DK', 'ISO8859-1') 'en_DK' was added in issue20079. -- nosy: +serhiy.storchaka sta

[issue1158490] locale fails if LANGUAGE has multiple locales

2014-06-28 Thread Mark Lawrence
Mark Lawrence added the comment: The words here https://docs.python.org/3/library/locale.html#locale.getdefaultlocale read in part "envvars defaults to the search path used in GNU gettext; it must always contain the variable name 'LANG'.". I think this means that envvars should always contai

[issue1158490] locale fails if LANGUAGE has multiple locales

2011-01-06 Thread STINNER Victor
STINNER Victor added the comment: The initial problem (":" in the LANGUAGE variable) was fixed in an independent (?) issue (#1166938) by r39572. If I understood correctly, locale.getdefaultlocale() is supposed to give the locale settings that we will be active after the first call to locale.

[issue1158490] locale fails if LANGUAGE has multiple locales

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mail

[issue1158490] locale fails if LANGUAGE has multiple locales

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence : -- versions: +Python 2.7, Python 3.1 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1158490] locale fails if LANGUAGE has multiple locales

2010-07-31 Thread Dan Buch
Dan Buch added the comment: I first verified that the relevant parts of ``locale:getdefaultlocale`` have been unchanged since 2005-10-17. I'm adding a patch to remove default support for the LANGUAGE variable and tests to assert that values like 'en_DK:en_GB:en_US' raise ValueError (plus ass

[issue1158490] locale fails if LANGUAGE has multiple locales

2009-04-22 Thread Daniel Diniz
Changes by Daniel Diniz : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1158490] locale fails if LANGUAGE has multiple locales

2009-03-20 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: -> test needed type: -> behavior versions: +Python 2.6 -Python 2.4 ___ Python tracker ___ ___