[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: "%'d" format print modifier
From: |
Vsevolod Myassin |
Subject: |
RE: "%'d" format print modifier |
Date: |
Tue, 25 Mar 2008 01:58:36 +1100 |
Hi there,
Ive found that "%'d\n" format modifier does not work properly with GAWK
being installed on VISTA with English AU locale which supports , as
thousands separator.
Please, see below program syntax and output:
*** PROGRAM ***
BEGIN {
val=123456789;
printf("%'d\n", val);
}
*** PROGRAM END ***
*** OUTPUT ****
C:\Users\zmei\Documents\AWK & SED>gawk -f text-1.awk
123i456i789
C:\Users\zmei\Documents\AWK & SED>gawk -f text-1.awk
123w456w789
C:\Users\zmei\Documents\AWK & SED>gawk -f text-1.awk
123|456|789
C:\Users\zmei\Documents\AWK & SED>gawk -f text-1.awk
123Ó456Ó789
*** OUTPUT END *******
Changing environment variable (LC_ALL=en_US.UTF-8) does not help either.
If workaround for this problem on VISTA exists, please, let me know.
Regards,
Vsevolod Myassin
Mob: 0413 011 031
Ph: +61 2 9389 5196
E-mail: <mailto:address@hidden> address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- RE: "%'d" format print modifier,
Vsevolod Myassin <=