>> >> Does Glibc support persian numbers?
>> >
>> > Yes. This is what 'I' flag defined for. (see printf manual part 3)
>> > You can change your '%d' and '%f' with '%Id' and '%If' in printf
>> > parameters like this:
>> >
>> > printf ("%Id", 12345);
>> >
>> > And you will see Persian digits if you set you locale to fa_IR.
>>
>> If think you wanted to say "%lc" -- the length modifier "l" is applied to
>> char type:
>>
>> printf("%lc", 0x06f3); // arabic-indic digit 3
>>
> No. I exactly meant 'I' flag which does what he wants.
> Check printf man page part 3 and look for 'Arabic' or 'Persian'.
I see. The font I use shows lower case 'L' the same as upper case 'I'.
For what it is worth, according to ISO C99, if __STDC_ISO_10646__
macro is defined, you can use the "l" (lower case 'L') modifier for
char ("%c") format to print a UNICODE char:
Is the upper case "i" (eye) for printf in the ISO C standard?
"glibc 2.2 adds one further flag character.
I For decimal integer conversion (i, d, u) the output uses the
locale's alternative output digits, if any. For example, since
glibc 2.2.3 this will give Arabic-Indic digits in the Persian
(`fa_IR') locale.
"
_______________________________________________
PersianComputing mailing list
[EMAIL PROTECTED]
http://lists.sharif.edu/mailman/listinfo/persiancomputing