sardemff7 / j4status

Status line generator
https://sardemff7.github.io/j4status/
GNU General Public License v3.0
47 stars 9 forks source link

j4status: always call setlocale() #16

Closed bboozzoo closed 9 years ago

bboozzoo commented 9 years ago

setlocale() needs to be called always regardless of NLS support, otherwise glib charset detection will not work properly and UTF-8 encoded format fields will not be correctly handled.

Effectively the patch allows setting of time format to:

[Time]
Zones=Europe/Warsaw;
Label=test label
Format=  %a %d %b %Y - %H:%M
sardemff7 commented 9 years ago

Thanks a lot for this fix. I used it for eventd too. I pushed it as cba3cdf0ba840c17d42ee1633d646524b9c76b1e (less #if, and a more GLib-ish configure.ac check).

Tell me if you have any copyright-related issue with that.