mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-08 10:09:32 +08:00
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>
This commit is contained in:
parent
d83183e4f7
commit
d14b65bdd5
@ -160,7 +160,6 @@ static struct _nl_item_t
|
||||
_NLITEM (monetary, wmon_thousands_sep),
|
||||
_NLITEM (monetary, wpositive_sign),
|
||||
_NLITEM (monetary, wnegative_sign),
|
||||
_NLITEM (messages, codeset),
|
||||
_NLITEM (messages, wyesexpr),
|
||||
_NLITEM (messages, wnoexpr),
|
||||
_NLITEM (messages, wyesstr),
|
||||
|
Loading…
x
Reference in New Issue
Block a user