Bug#245836: nl_langinfo
tags 245836 confirmed fixed-upstream
thanks
At Tue, 3 Aug 2004 13:58:59 -0400,
Justin Pryzby wrote:
> Actually, libc6 is correctly returning "" when its passed a bogus
> parameter.
>
> However, when its passed good input, it returns NULL. All returns from
> the function are of "", except for this one:
>
> return (char *)data->values[index].string;
>
> So, apparently string is never initialized. Is documentation missing a
> "you must call this init function" maybe?
No, this is glibc's bug. Under LANG=C, the initial nl_langinfo(ERA)
table is NULL, not "". It's fixed at the latest cvs.
Regards,
-- gotom
Reply to: