Michael Catanzaro 621d69e0bc utils: Use setlocale() in is_workday()
Trying to use environment variables to guess the locale was a good
attempt, but this is tricky because they have to be looked up in a
certain order: first LC_ALL, then fallback to LC_TIME, and finally LANG,
which was missed here. This caused a huge warning spam on the year view
when only LANG is set, and usually only LANG should be set since the
other environment variables are usually used for temporary overrides.
Instead, query the locale using setlocale().

Also, don't assert if the locale is shorter than expected (missing
territory code) since there is at least one valid locale that does not
have any territory codes (Esperanto) and since it's programmer error to
assert when the application processes unexpected input like this.

Fixes #424
2019-07-09 21:52:56 -03:00
2019-07-09 21:24:58 -03:00
2019-05-17 21:58:55 +02:00
2019-07-08 19:27:04 +00:00
2019-05-04 12:05:39 -03:00
2019-05-04 12:05:39 -03:00
2018-07-31 12:35:56 -03:00
2019-05-04 22:45:14 -03:00
2018-02-23 16:11:36 -03:00
2012-04-25 23:56:34 -04:00
2018-01-28 00:32:07 -02:00
2017-09-08 21:34:52 -03:00
2019-05-04 12:28:24 -03:00
2019-06-20 19:53:03 -05:00
2019-06-20 19:53:03 -05:00
2018-07-24 19:07:27 -03:00
2018-01-16 08:32:43 -02:00

GNOME Calendar

GNOME Calendar is a simple and beautiful calendar application for GNOME. We give a lot of attention to details, and as such, design is an essential and ongoing effort.

The wiki is here

S
Description
No description provided
Readme
19 MiB
Languages
C 97.6%
Meson 1.2%
CSS 0.7%
Python 0.3%
Shell 0.2%