Issue1915
Created on 2012-06-09.19:17:02 by Arfrever, last changed 2015-03-16.20:44:12 by zyasoft.
msg7198 (view) |
Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) |
Date: 2012-06-09.19:17:02 |
|
Locale is set without call to locale.setlocale(). This issue occurs in both Jython 2.5 and 2.7.
$ export LC_ALL="pl_PL.UTF-8"
$ python2.5 -c 'import time; print(time.strftime("%d %b %Y", time.gmtime(time.time())))'
09 Jun 2012
$ python2.7 -c 'import time; print(time.strftime("%d %b %Y", time.gmtime(time.time())))'
09 Jun 2012
$ jython2.5 -c 'import time; print(time.strftime("%d %b %Y", time.gmtime(time.time())))'
09 cze 2012
$ jython2.7 -c 'import time; print(time.strftime("%d %b %Y", time.gmtime(time.time())))'
09 cze 2012
In CPython, locale specified in environmental variables is used only after call to locale.setlocale() with locale argument set to empty string:
$ python2.5 -c 'import locale, time; locale.setlocale(locale.LC_ALL, ""); print(time.strftime("%d %b %Y", time.gmtime(time.time())))'
09 cze 2012
$ python2.7 -c 'import locale, time; locale.setlocale(locale.LC_ALL, ""); print(time.strftime("%d %b %Y", time.gmtime(time.time())))'
09 cze 2012
|
msg9666 (view) |
Author: Jim Baker (zyasoft) |
Date: 2015-03-16.20:44:12 |
|
see also #2285
|
|
Date |
User |
Action |
Args |
2015-03-16 20:44:12 | zyasoft | set | nosy:
+ zyasoft messages:
+ msg9666 |
2013-02-26 18:31:40 | fwierzbicki | set | priority: normal nosy:
+ fwierzbicki versions:
+ Jython 2.7 |
2012-06-09 19:17:02 | Arfrever | create | |
|