]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Consistently print calendar dates in the locale of the user
authorStefan Eßer <se@FreeBSD.org>
Tue, 3 Nov 2020 12:15:08 +0000 (12:15 +0000)
committerStefan Eßer <se@FreeBSD.org>
Tue, 3 Nov 2020 12:15:08 +0000 (12:15 +0000)
commitf1560bd080a34d25fddd917e20363d32059459de
tree6fa1cd5094b1fc76bdeca9299c915f955d5e3daa
parentcc9fbfafbe6bc8ec848c40cd5bb3887529329bb9
Consistently print calendar dates in the locale of the user

Calendar files that specify LANG=... to specify their character encoding did
also set the date format defined for that locale, resulting in output like:

Nov  4  Gabriel Faure dies from pneumonia in Paris, France, 1924
 4 nov.  N'oubliez pas les Charles !

After this commit the output is always printed in a consistent format
according to the user's current locale, e.g.:

Nov  4  Gabriel Faure dies from pneumonia in Paris, France, 1924
Nov  4  N'oubliez pas les Charles !

I'll open a review asking for opinions whether this format change should
be merged to -STABLE.

Relnotes: yes
usr.bin/calendar/io.c