vidraj / derinet

The main repository for the DeriNet project and all its dependencies and related tools.
https://ufal.mff.cuni.cz/derinet
7 stars 3 forks source link

Improve locale handling #13

Open vidraj opened 6 years ago

vidraj commented 6 years ago

Calling locale.setlocale(locale.LC_ALL, locales) overrides user language settings, making e.g. the logger print 'St, 11 dub 2018 19:12:17' instead of 'Wed, 11 Apr 2018 19:12:17'. We don't want that. Therefore, only set the appropriate locale variables.

These should be:

Also, maybe default to 'C.UTF-8' instead of 'cs'? It is a non-UNIX-standard value, but it was added to Python for this exact purpose.