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 698942 - (null) instead of time when using the C locale
(null) instead of time when using the C locale
Status: RESOLVED FIXED
Product: gnome-clocks
Classification: Applications
Component: general
3.8.x
Other Linux
: Normal minor
: ---
Assigned To: Clocks maintainer(s)
Clocks maintainer(s)
: 701780 704845 (view as bug list)
Depends on: 707599
Blocks:
 
 
Reported: 2013-04-26 12:36 UTC by Marius Gedminas
Modified: 2013-09-12 12:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot of the problem (222.77 KB, image/png)
2013-04-26 12:36 UTC, Marius Gedminas
  Details
patch proposal: for time repair (1.24 KB, patch)
2013-07-26 08:35 UTC, Evgeny Bobkin
none Details | Review
patch proposal: for time repair (1.42 KB, patch)
2013-07-26 10:23 UTC, Evgeny Bobkin
none Details | Review
reworked 250189: patch proposal: for time repair (1.46 KB, patch)
2013-07-26 10:28 UTC, Evgeny Bobkin
committed Details | Review
Fix "(null)" time in the C locale (905 bytes, patch)
2013-09-05 23:05 UTC, Bastien Nocera
none Details | Review

Description Marius Gedminas 2013-04-26 12:36:07 UTC
Created attachment 242555 [details]
screenshot of the problem

I tend to run apps in the C locale whenever I want to take a screenshot of an app in English.  When I ran 'LC_ALL=C gnome-clocks' I noticed that it becomes confused and shows (null) instead of the time for the clocks.

(For the record, I can use LANGUAGE=en_US.UTF-8 gnome-clocks to get sane English screenshots.)
Comment 1 Thomas Wood 2013-04-26 15:31:31 UTC
This is probably caused by bug 698952.
Comment 2 Paolo Borelli 2013-06-09 10:04:20 UTC
*** Bug 701780 has been marked as a duplicate of this bug. ***
Comment 3 Evgeny Bobkin 2013-07-25 06:30:32 UTC
*** Bug 704845 has been marked as a duplicate of this bug. ***
Comment 4 Evgeny Bobkin 2013-07-25 07:16:18 UTC
(In reply to comment #1)
> This is probably caused by bug 698952.

I have tested the wallclock string you have mentioned with the LANG=C locale within the attached test case

https://bugzilla.gnome.org/show_bug.cgi?id=696497#c21

It does not seem to be the case any more the returned string is not (null) any more. Can you confirm?

however for gnome-clocks!!!
Comment 5 Evgeny Bobkin 2013-07-26 08:35:11 UTC
Created attachment 250184 [details] [review]
patch proposal: for time repair
Comment 6 Evgeny Bobkin 2013-07-26 10:23:11 UTC
Created attachment 250189 [details] [review]
 patch proposal: for time repair
Comment 7 Evgeny Bobkin 2013-07-26 10:28:24 UTC
Created attachment 250190 [details] [review]
reworked 250189: patch proposal: for time repair
Comment 8 Evgeny Bobkin 2013-07-26 10:37:56 UTC
This time problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.


The bug report remains open till the sunset, sunrise strings are fixed in libgweather as well.
Comment 9 Bastien Nocera 2013-09-05 23:05:14 UTC
Created attachment 254216 [details] [review]
Fix "(null)" time in the C locale

We just need to tell our program which locale we actually want to
use instead on trying to output UTF-8 all the time.
Comment 10 Evgeny Bobkin 2013-09-06 08:41:18 UTC
(In reply to comment #9)
> Created an attachment (id=254216) [details] [review]
> Fix "(null)" time in the C locale
> 
> We just need to tell our program which locale we actually want to
> use instead on trying to output UTF-8 all the time.

This should be redundant, because IIRC gtk_init or similar function already does this.
Comment 11 Bastien Nocera 2013-09-06 18:40:14 UTC
True, never mind.
Comment 12 Evgeny Bobkin 2013-09-12 12:17:29 UTC
(In reply to comment #8)
> This time problem has been fixed in the development version. The fix will be
> available in the next major software release. Thank you for your bug report.
> 
> 
> The bug report remains open till the sunset, sunrise strings are fixed in
> libgweather as well.

fixed by Paolo in commit	5a2b0dfceca09f0d666faad24caa6d1ec7c0e292.