Re: [util-linux] cal doesn't honor first_weekday value from locale

Andries.Brouwer_at_cwi.nl
Date: 2001-11-29 18:27:41

    Andries.Brouwer@cwi.nl:

    > Q: In Sweden one has to give -m to cal. Why not ask the locale?
    > A: Because the locale does not distinguish countries today,
    >    so asking the locale yields no information.
    >
    > So, for today, that is the end of the discussion.

    $ locale
    [...]
    LC_TIME="sv_SE.ISO8859-1"
    [...]       ^^
                ||
    That's a country, so your assumption is incorrect. Most GlibC locales
    are specified with countries, such as en_US, sv_FI, no_NO, fr_FR,
    pt_BR, etc.

Oh, are you really that slow to understand?

Give the command "locale first_weekday" for one country.
You get 1. Give it for another country. You get 1 again.

You see that the function "locale first_weekday"
does not distinguish countries today. 

Regardless of whether the right answer is Sunday or Monday,
it always says Monday.

(And please, please don't tell me of the exceptions. I know.
All details have been discussed several times already.
You are just wasting everybody's time.)

Arkiv genererat av hypermail 2.1.1.