4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-02 21:15:27 +08:00
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: d47d5b850bed ("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
..
2022-07-13 06:55:41 +02:00
2023-09-11 09:23:05 +02:00
2023-08-17 18:14:15 -04:00
2023-08-09 11:38:03 +02:00
2023-07-18 13:43:29 -04:00
2023-08-17 18:14:15 -04:00