Re: Persian numbers in Glibc
On Sun, Sep 12, 2004 at 01:22:02PM -0700, Skip Tavakkolian wrote: 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? No it isn't. ISO C only reserves lowercase letters. 'I' is defined by glibc for both printf and scanf. Hamed ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing
Re: Persian numbers in Glibc
Hello Mohsen, 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. For reading localized digits, it is not implemented correctly but it is under development. Is there any application in linux supporting persian numbers?Should this support be added to any application that is supposed to support persian language? Gedit is going to be the first application which support Persian digits. It would be in the next version. Hamed ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing
Re: Persian numbers in Glibc
On Sun, Sep 12, 2004 at 09:30:15AM -0700, Skip Tavakkolian wrote: 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'. Hamed ___ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing