This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Bug in printf's i18n flag
- From: Hamed Malek <hamed at bamdad dot org>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 25 May 2004 01:14:42 +0430
- Subject: 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