[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 status:

[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 contain

[issue1158490] locale fails if LANGUAGE has multiple locales

2011-01-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo stage: unit test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1158490 ___

[issue1158490] locale fails if LANGUAGE has multiple locales

2011-01-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue1158490] locale fails if LANGUAGE has multiple locales

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.1 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1158490 ___

[issue1158490] locale fails if LANGUAGE has multiple locales

2010-07-31 Thread Dan Buch
Dan Buch daniel.b...@gmail.com 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

[issue1158490] locale fails if LANGUAGE has multiple locales

2009-04-22 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1158490 ___ ___ Python-bugs-list

[issue1158490] locale fails if LANGUAGE has multiple locales

2009-03-20 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- stage: - test needed type: - behavior versions: +Python 2.6 -Python 2.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1158490 ___