This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bug in printf's i18n flag


Printf can't show i18n integer numbers correctly. 
Here is my test case:
 
#include <stdio.h>
#include <locale.h>

int main()
{
    setlocale(LC_ALL, "fa_IR");
    printf("%I'd\n", 123456);
    return 0;
}

Which put ASCII digits inside the Arabic ones.
(Anti-spam doesn't let to show the result!)

Apparently /stdio-common/i18n_number.h can't convert 
decimal-point and thousands-sep correctly.

Hamed


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]