newlib-cygwin/newlib/libc/locale
Takashi Yano 0e961f582a newlib: nl_langinfo: Fix a bug of time stuff.
Previously, e.g. nl_langinfo(_NL_TIME_WMONTH_1) returns "February"
due to the bug. Similarly, nl_langinfo(_NL_TIME_WWDAY_1) returns
"Mon". This occurs because wide char month and weekday arrays are
pointed off-by-one (e.g. the array wmon[12] is reffered as wmon[1-12]
rather than wmon[0-11]). This patch fixes that.

Fixes: d47d5b850b ("Extend locale support to maintain wide char values of native strings")
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
2023-11-24 09:53:11 +09:00
..
Makefile.inc newlib: libc: merge build up a directory 2022-03-16 21:18:25 -04:00
duplocale.c locale: remove TRAD_SYNOPSIS 2017-12-01 03:41:50 -06:00
freelocale.c locale: remove TRAD_SYNOPSIS 2017-12-01 03:41:50 -06:00
lctype.c Cygwin: fix LC_CTYPE in global locale to be a real C.UTF-8 locale 2022-12-03 16:16:30 +01:00
lmessages.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
lmonetary.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
lnumeric.c Remove non-working __part_load_locale function and any related code 2016-08-15 10:56:57 +02:00
locale.c Reentrancy, use _REENT_ERRNO() 2023-09-11 09:23:05 +02:00
locale.tex Fix mismatched parentheses in documentation. 2015-06-24 12:23:25 +01:00
localeconv.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
newlocale.c Reentrancy, use _REENT_ERRNO() 2023-09-11 09:23:05 +02:00
nl_langinfo.3 * libc/include/langinfo.h: New file. 2002-08-23 01:56:05 +00:00
nl_langinfo.c newlib: nl_langinfo: Fix a bug of time stuff. 2023-11-24 09:53:11 +09:00
setlocale.h Cygwin: convert Windows locale handling from LCID to ISO5646 strings 2023-02-24 16:40:58 +01:00
timelocal.c fix __time_load_locale return code 2023-05-17 17:47:54 -04:00
uselocale.c Add _REENT_LOCALE(ptr) 2022-07-13 06:55:46 +02:00