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