After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 580865 - Call JS_SetLocaleCallbacks()
Call JS_SetLocaleCallbacks()
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2009-04-30 10:13 UTC by Igor Vatavuk
Modified: 2009-05-05 20:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
small picture showing the bug in action (6.38 KB, image/png)
2009-04-30 10:14 UTC, Igor Vatavuk
  Details
Call JS_SetLocaleCallbacks() (6.40 KB, patch)
2009-04-30 21:24 UTC, Owen Taylor
accepted-commit_now Details | Review

Description Igor Vatavuk 2009-04-30 10:13:30 UTC
Panel font doesn't support utf-8 characters.
It should say "Čet Tra 30, 12:07", but Č character is not displayed correctly.
See the screenshot for details.
Comment 1 Igor Vatavuk 2009-04-30 10:14:32 UTC
Created attachment 133643 [details]
small picture showing the bug in action
Comment 2 Owen Taylor 2009-04-30 21:24:14 UTC
gjs problem - locale callbacks need to be set to make toLocaleDateString() work; will attach a patch.
Comment 3 Owen Taylor 2009-04-30 21:24:43 UTC
Created attachment 133690 [details] [review]
Call JS_SetLocaleCallbacks()

SpiderMonkey doesn't implement locale handling for functions
like String.toLocaleLowerCase itself; it depends on a set of
"callbacks" being set on the context.

gjs/context.c: Implement locale callbacks in terms of GLib
js/testLocale.js: tests for locale handling
Comment 4 Havoc Pennington 2009-05-05 20:24:01 UTC
Looks good.
Comment 5 Owen Taylor 2009-05-05 20:26:36 UTC
Pushed.