Message9441
$ LC_ALL="pl_PL.UTF-8" jython2.7 -c 'import datetime; print(datetime.datetime.strptime("2015-01-22", "%Y-%m-%d"))'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/share/jython-2.7/Lib/datetime.py", line 1504, in strptime
return cls(*(_time.strptime(date_string, format))[0:6])
File "/usr/share/jython-2.7/Lib/_strptime.py", line 270, in <module>
_TimeRE_cache = TimeRE()
File "/usr/share/jython-2.7/Lib/_strptime.py", line 188, in __init__
self.locale_time = LocaleTime()
File "/usr/share/jython-2.7/Lib/_strptime.py", line 71, in __init__
self.__calc_weekday()
File "/usr/share/jython-2.7/Lib/_strptime.py", line 91, in _LocaleTime__calc_weekday
a_weekday = [calendar.day_abbr[i].lower() for i in range(7)]
File "/usr/share/jython-2.7/Lib/calendar.py", line 79, in __getitem__
return funcs(self.format)
File "/usr/share/jython-2.7/Lib/datetime.py", line 804, in strftime
return _wrap_strftime(self, fmt, self.timetuple())
File "/usr/share/jython-2.7/Lib/datetime.py", line 239, in _wrap_strftime
return _time.strftime(newformat, timetuple)
at org.python.core.PyString.<init>(PyString.java:62)
at org.python.core.PyString.<init>(PyString.java:68)
at org.python.modules.time.Time.strftime(Time.java:681)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value
This bug can be reproduced with at least the following locales:
cs_CZ.UTF-8
pl_PL.UTF-8
ru_RU.UTF-8
sk_SK.UTF-8
uk_UA.UTF-8 |
|
Date |
User |
Action |
Args |
2015-01-22 02:09:27 | Arfrever | set | recipients:
+ Arfrever |
2015-01-22 02:09:27 | Arfrever | set | messageid: <1421892567.82.0.0325668439943.issue2261@psf.upfronthosting.co.za> |
2015-01-22 02:09:27 | Arfrever | link | issue2261 messages |
2015-01-22 02:09:27 | Arfrever | create | |
|