[issue18228] AIX locale parsing failure

2020-10-03 Thread STINNER Victor


STINNER Victor  added the comment:

Sorry, I forgot to close it 7 years ago. Done ;-)

--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2020-10-02 Thread Irit Katriel


Irit Katriel  added the comment:

Looks like this can be closed.

--
nosy: +iritkatriel
status: pending -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2014-10-02 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2014-07-12 Thread Mark Lawrence

Mark Lawrence added the comment:

Presumably this can be closed as fixed.

--
nosy: +BreamoreBoy
status: pending - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2014-01-28 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2013-06-18 Thread David Edelsohn

Changes by David Edelsohn dje@gmail.com:


--
versions: +Python 2.7, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2013-06-18 Thread David Edelsohn

Changes by David Edelsohn dje@gmail.com:


--
versions:  -Python 2.7, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2013-06-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 00824f9e29f3 by Victor Stinner in branch 'default':
Issue #18228: Fix locale test of test.regrtest.saved_test_environment
http://hg.python.org/cpython/rev/00824f9e29f3

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2013-06-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6cbd992d3411 by Victor Stinner in branch 'default':
Issue #18228: Use locale.setlocale(name, None) instead of
http://hg.python.org/cpython/rev/6cbd992d3411

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2013-06-16 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +haypo, lemburg, trent

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2013-06-16 Thread David Edelsohn

David Edelsohn added the comment:

The problem is Lib/test/regrtest.py.

_lc = [getattr(locale, lc) for lc in dir(locale) if lc.startswith('LC_')]

The list of locales that start with 'LC_' includes LC_ALL.  On AIX, at least, 
setlocal(LC_ALL,NULL) returns a string with the locales for each locale 
category.  Lib/locale.py for getlocale() specifically says:
category may be one of the LC_* value except LC_ALL.

The following patch fixes the AIX testing problem.

diff -r bdd60bedf933 Lib/test/regrtest.py
--- a/Lib/test/regrtest.py  Sun Jun 16 18:37:53 2013 -0400
+++ b/Lib/test/regrtest.py  Sun Jun 16 22:05:52 2013 -0700
@@ -1231,7 +1231,7 @@
 elif os.path.isdir(support.TESTFN):
 shutil.rmtree(support.TESTFN)
 
-_lc = [getattr(locale, lc) for lc in dir(locale) if lc.startswith('LC_')]
+_lc = [getattr(locale, lc) for lc in dir(locale) if lc.startswith('LC_') 
and lc != 'LC_ALL']
 def get_locale(self):
 pairings = []
 for lc in self._lc:

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18228] AIX locale parsing failure

2013-06-15 Thread David Edelsohn

New submission from David Edelsohn:

All tests are failing for 3.x on AIX due to an error parsing the locale.  This 
is not failing on 3.3 branch.

  File 
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/regrtest.py,
 line 1292, in runtest_inner
with saved_test_environment(test, verbose, quiet) as environment:
  File 
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/regrtest.py,
 line 1256, in __enter__
in self.resource_info())
  File 
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/regrtest.py,
 line 1255, in genexpr
self.saved_values = dict((name, get()) for name, get, restore
  File 
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/regrtest.py,
 line 1239, in get_locale
pairings.append((lc, locale.getlocale(lc)))
  File 
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/locale.py, 
line 524, in getlocale
return _parse_localename(localename)
  File 
/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/locale.py, 
line 433, in _parse_localename
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: C en_US C C C C

--
components: Library (Lib)
messages: 191257
nosy: David.Edelsohn
priority: normal
severity: normal
status: open
title: AIX locale parsing failure
type: behavior
versions: Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18228
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com