Title: test_email fails if default locale is Japanese
Type: behaviour Severity: minor
Components: None Versions: Jython 2.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: nobody Nosy List: fwierzbicki, nobody, yyamano, zyasoft
Priority: high Keywords: patch

Created on 2011-02-17.03:03:54 by yyamano, last changed 2014-09-26.05:43:00 by zyasoft.

File name Uploaded Description Edit Remove
build.xml-patch yyamano, 2011-02-17.03:03:53
msg6400 (view) Author: Yuji Yamano (yyamano) Date: 2011-02-17.03:03:53
I got the following error when I run the tests on Mac OS X with Japanese locale.

[exec] test_email
[exec] test test_email failed -- Traceback (most recent call last):
[exec]   File "/Users/yyamano/work/jython/trunk/jython/dist/Lib/email/test/", line 2129, in test_formatdate_usegmt
[exec]     self.assertEqual(
[exec] AssertionError: 'Thu, 17 Feb 2011 02:03:38 -0000' != '\u6728, 17 2 2011 02:03:38 -0000'

Attached patch solves the problem. It requires Ant 1.7 or later.

Note: LANG and LC_* environment variables doesn't work with the Java implementation on Mac OS X. JAVA_OPTS="-Duser.language=en -Duser.region=US" works.
msg9045 (view) Author: Jim Baker (zyasoft) Date: 2014-09-26.05:43:00
Looks like a very appropriate fix, sorry it has been buried in this bug tracker for so long!
Date User Action Args
2014-09-26 05:43:00zyasoftsetpriority: normal -> high
assignee: fwierzbicki -> nobody
messages: + msg9045
nosy: + zyasoft, nobody
2013-02-19 23:43:20fwierzbickisetkeywords: + patch
assignee: fwierzbicki
priority: normal
nosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.2rc
2011-02-17 03:03:54yyamanocreate