[PATCH] Fetch week start value for gcal 3.01 from locale

Petter Reinholdtsen pere@hungry.com
Thu Jan 1 16:42:00 GMT 2004


[Petter Reinholdtsen]
> +  start_day = *nl_langinfo(_NL_TIME_FIRST_WEEKDAY) - 1 ;

The cal source in util-linux uses this notation to extract the week day:

  (int)nl_langinfo(_NL_TIME_FIRST_WEEKDAY)[0]

It might be a better alternative.



More information about the Libc-alpha mailing list