621d69e0bce5a4f70a82a601239ea627c679d844
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
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
Languages
C
97.6%
Meson
1.2%
CSS
0.7%
Python
0.3%
Shell
0.2%