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₩ラ".
Qt shares the toLocaleDateString() implementation with other platforms, the only one currently with a custom implementation is Mac.
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.
It seems to be working fine. Confirmed it on code in trunk on Ubuntu system. The result is 2011年02月14日.
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.