Hi,
Samuel Thibault, le Wed 08 Feb 2006 00:41:00 +0100, a écrit :
> - you can get first day of the week:
> unsigned first = * (unsigned char *) nl_langinfo(_NL_TIME_FIRST_WEEKDAY);
> (1 is sunday).
This is not so easy, actually.
Stricly speaking, _NL_TIME_FIRST_WEEKDAY doesn't return an abso
I indeed forgot a few things:
- you can get paper size in mm:
unsigned long width = (unsigned long) nl_langinfo(_NL_PAPER_WIDTH);
unsigned long height = (unsigned long) nl_langinfo(_NL_PAPER_HEIGHT);
- you can get first day of the week:
unsigned first = * (unsigned char *) nl_langinfo(_NL_TI
Hi,
I too find it a bit sad that pcal doesn't use locale strings. Using it
is really easy:
- #include and
- At the beginning of the program, call setlocale(LC_ALL,""); for
initializing locales according to environment variabls.
- Replace months_ml[output_languag][mm-1] by nl_langinfo(months[m
3 matches
Mail list logo