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 650086 - gnome-shell's Date.toLocaleFormat() override is broken
gnome-shell's Date.toLocaleFormat() override is broken
Status: RESOLVED DUPLICATE of bug 648678
Product: gnome-shell
Classification: Core
Component: calendar
3.0.x
Other Linux
: Normal critical
: ---
Assigned To: David Zeuthen (not reading bugmail)
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-05-13 07:25 UTC by Hedayat Vatankhah
Modified: 2011-05-26 15:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hedayat Vatankhah 2011-05-13 07:25:58 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=703060

As stated there, the workaround provided by the fix for bug #643350 doesn't work in fa locale and causes gnome-shell to crash. These are the error messages in xsession-errors file, which is clearly caused by the patch:

** Message: applet now removed from the notification area
    JS ERROR: !!!   Exception was: Error: Argument 'text' (type utf8) may not be null
    JS ERROR: !!!     lineNumber = '0'
    JS ERROR: !!!     fileName = 'gjs_throw'
    JS ERROR: !!!     stack = '("Argument 'text' (type utf8) may not be null")@gjs_throw:0
()@/usr/share/gnome-shell/js/ui/dateMenu.js:189
()@/usr/share/gnome-shell/js/ui/dateMenu.js:148
DateMenuButton()@/usr/share/gnome-shell/js/ui/dateMenu.js:44
()@/usr/share/gnome-shell/js/ui/panel.js:950
Panel()@/usr/share/gnome-shell/js/ui/panel.js:810
start()@/usr/share/gnome-shell/js/ui/main.js:151
@<main>:1
'
    JS ERROR: !!!     message = 'Argument 'text' (type utf8) may not be null'
ﻪﺷﺩﺍﺭ ﻡﺩیﺭ پﻦﺟﺮﻫ<200c>ﻫﺍ: Log level 32: Execution of main.js threw exception: Error: Argument 'text' (type utf8) may not be null

For whatever reason, shell_util_format_date doesn't return a valid string in fa locale and apparently, returns NULL.
Comment 1 Hedayat Vatankhah 2011-05-15 19:41:37 UTC
It might be fixed by bug #648678
Comment 2 Owen Taylor 2011-05-26 15:24:05 UTC

*** This bug has been marked as a duplicate of bug 648678 ***