4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-25 18:17:17 +08:00
Corinna Vinschen ea1a458d20 nl_langinfo_l: drop erroneus messages::codeset entry
The nl_ext array contains offsets into the extended info of
locale structures, the index being equivalent to the nl_item
values in langinfo.h.

For the lc_messages_T struct, nl_ext erroneusly contains an
entry for the codeset member, which is in fact not part of the
extended info in nl_item.  However, due to that, the offsets for
subsequent entries are off by one.

Fix this by dropping the messages::codeset entry from nl_ext.

Fixes: d47d5b850bed ("Extend locale support to maintain wide char values of native strings")
Reported-by: Brian Inglis <Brian.Inglis@systematicsw.ab.ca>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2024-08-22 21:15:44 +02:00
..
2017-12-01 03:41:50 -06:00
2017-12-01 03:41:50 -06:00
2023-09-11 09:23:05 +02:00
2018-01-17 11:47:26 -06:00
2023-09-11 09:23:05 +02:00
2023-05-17 17:47:54 -04:00
2022-07-13 06:55:46 +02:00