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: fwierzbicki Nosy List: fwierzbicki, yyamano
Priority: normal Keywords: patch

Created on 2011-02-17.03:03:54 by yyamano, last changed 2013-02-19.23:43:20 by fwierzbicki.

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.
Date User Action Args
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