Re: PA glibc nls bug

"John David Anglin" <[email protected]>
Newsgroups gmane.linux.ports.hppa
Message-ID <[email protected]>
> > This started as GCC PR 31413:
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31413
> >
> > The 4.cc test fails because this wchar string isn't being correctly
> > processed:
> >
> >   const wchar_t wstr[] = { 0x897f, 0x5143, L'2', L'0', L'0', L'3',
> >                            0x5e74, L'1', L'2', 0x6708, L'1', L'7',
> >                            0x65e5 , 0x0 };
> >
> > Note the first two values are the same as my x86 system returns.
> 
> Yes, that means my x86 and hppa debian boxes are broken.

Etch/stable is also broken.  Could this problem be present in the
upstream glibc sources as well?

> What do you think could be the problem?
> 
> > The issue is clearly in newlocale.  nl_langinfo_l just returns
> > a pointer that was previously setup.
> 
> newlocale calls nl_langinfo_l to fill in some structures. So it could
> still be a problem with nl_langinfo_l.

I think it will do this if the locale has already been setup.  When
a new locale needs to be setup, it malloc's some memory and sets up
the strings and pointers.

Yesterday, I was looking for something PA specific and not having
much success.  Now that we know that this is a generic problem, I would
file a Debian PR and look through recent changes to the locale files.

Dave
-- 
J. David Anglin                                  [email protected]
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.