bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: thousands separator


From: Gary Ashburn
Subject: Re: thousands separator
Date: Fri, 03 Jul 2009 06:36:37 -0400

much more simple test - good idea

result is still random character:


C:\C\UTIL>echo BEGIN { printf("%'d\n", 123456789 ) } > awktest.awk

C:\C\UTIL>awk -f awktest.awk
123V456V789

C:\C\UTIL>awk -f awktest.awk
123Ö456Ö789

with -W traditional still random:

C:\C\UTIL>awk -W traditional -f awktest.awk
123b456b789

C:\C\UTIL>awk -W traditional -f awktest.awk
123E456E789


system is vista32 SP1



At 04:57 AM 7/3/2009, Aharon Robbins wrote:
Hi.

Please send text mails in the future.

It would help to know which version of gawk this is for Windows (how it
was compiled, where you got it).  It would also help to send the input
data; I don't really know off the top of my head what the dir command
outputs since I do gawk development under Linux.

This is undoubtedly some kind of locale issue; Windows systems have
limited or nonexistent support for these kinds of things.

If you set LC_ALL=C in the environment, that might help, but in this case
you won't get a thousands separator at all.

Let's try something simpler.  What happens if you run:

        BEGIN { printf("%'d\n", 123456789 }

Do you always get the same output? What is it?

Thanks,

Arnold






reply via email to

[Prev in Thread] Current Thread [Next in Thread]