Time#strftime breaks with multibyte characters, affects I18n#localize
---------------------------------------------------------------------
Key: JRUBY-3815
URL: http://jira.codehaus.org/browse/JRUBY-3815
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.3.1
Environment: Mac OS X 10.5, JRuby 1.3.1
Reporter: Han Kessels
Assignee: Thomas E Enebo
Attachments: strftime_patch.diff
Time#strftime does not decode UTF8 strings on the way in, but encodes them on
the way out, causing garbled output. This breaks I18n#localize as well.
Example code:
require 'test/minirunit'
t = Time.local(2000,1,1,14,58,42)
test_equal("2000年01月01日(Sat)
14時58分42秒", t.strftime("%Y年%m月%d日(%a)
%H時%M分%S秒"))
Small patch, including the test case is attached
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email