3 ms·
> The utility does use the locale. Which utility are we talking about? As the JNRowe's comment notes, there are at least three different versions of cal in cir
by skissane 6y ago
> The utility does use the locale.
Which utility are we talking about? As the JNRowe's comment notes, there are at least three different versions of cal in circulation: util-linux cal, bsdmainutils cal, and ncal. They don't all do the same thing.
util-linux's cal only supports three modes of operation–proleptic Gregorian, Julian, and calendar reform hardcoded to September 1752; it doesn't support any other reformation date. It uses the locale to decide whether to start the week on Monday or Sunday, but not to decide the Julian-Gregorian transition year.
BSD cal (used on macOS, Ubuntu, *BSD) only supports 1752 as a transition year and ignores the locale. BSD ncal (available on same platforms) supports other transition years and will use the configured locale to decide which one to use; however, it still falls back to 1752 as a default if locale information is not available.