• Bug#245836: nl_langinfo

    From GOTO Masanori@1:229/2 to Justin Pryzby on Fri Aug 13 10:30:17 2004
    XPost: linux.debian.maint.glibc
    From: [email protected]

    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


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)