]> Savannah Git Hosting - gnulib.git/commit
nl_langinfo: CODESET on MS-Windows and more items from localeconv
authorEli Zaretskii <eliz@gnu.org>
Sat, 5 Jul 2014 21:42:47 +0000 (14:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Jul 2014 22:20:50 +0000 (15:20 -0700)
commitfcfce839e791e35b1be8378811d8f82e2b0ca99f
tree3d78559abf2edf12de555178347d6cc610126c83
parented6374814e4a567c79fa4ff2c58c2872d2a9b045
nl_langinfo: CODESET on MS-Windows and more items from localeconv

* lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
(CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
(MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
(FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
(P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
* lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
Include <stdio.h> if Microsoft Windows.
Include <time.h> if !REPLACE_NL_LANGINFO.
(ctype_codeset): New function, taken from rpl_nl_langinfo,
and with improvements for Microsoft Windows.
(rpl_nl_langinfo): Use it.
(nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
corresponding values returned by 'localeconv'.  Compute the values
of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
'strftime' with a suitable struct tm value.
ChangeLog
lib/langinfo.in.h
lib/nl_langinfo.c