RESOLVED WORKSFORME Bug 29386
[Qt] QtWebKit: Date::toLocaleDateString() is not encoded correctly
https://bugs.webkit.org/show_bug.cgi?id=29386
Summary [Qt] QtWebKit: Date::toLocaleDateString() is not encoded correctly
Tor Arne Vestbø
Reported 2009-09-18 07:10:14 PDT
This bug report originated from issue QTBUG-2682 <http://bugreports.qt.nokia.com/browse/QTBUG-2682> --- Description --- Consider the following HTML page, displayed with QtWebKit and using ja_JP.UTF-8 locale: <html> <head> </head> <body> <script language="javascript"> alert('a'); var localeDate = new Date(); alert(localeDate.toLocaleDateString()); document.writeln(localeDate.toLocaleDateString()); </script> </body> </html> The expected result is "2008年08月27日". The actual result is "2008¥ᄍᄡ08₩ワネ27₩ラ".
Attachments
Kent Hansen
Comment 1 2010-03-16 04:16:19 PDT
Qt shares the toLocaleDateString() implementation with other platforms, the only one currently with a custom implementation is Mac.
Tor Arne Vestbø
Comment 2 2010-03-17 06:09:40 PDT
Confirmed in trunk. This works fine in Qt's calendar widget example, so we should probably go though Qt there to get the right behavior for the platform.
Aparna Nandyal
Comment 3 2011-02-13 22:36:07 PST
It seems to be working fine. Confirmed it on code in trunk on Ubuntu system. The result is 2011年02月14日.
Ademar Reis
Comment 4 2011-02-18 09:56:37 PST
Tested on the following versions: trunk: not affected 2.1 (branch): not affected 2.0 (qt47): affected (Linux Fedora 13, Qt-4.7) Since trunk is fine, I'm closing the bug. The next version of QtWebKit (2.1) will also be fine. Thanks for reporting it.
Note You need to log in before you can comment on or make changes to this bug.