Description of problem: When using code like printf "%'d %d" in a script currently both numbers are printed using thousand separators (given the numbers are large enough). This is not correct, the flag should not be sticky. Version-Release number of selected component (if applicable): gawk-3.1.5-15.fc7 How reproducible: always Steps to Reproduce: 1.store this in a file: env LC_ALL=en_US.UTF-8 \ ./gawk < /dev/null -f /dev/fd/3 3<<'EOF' END { printf "%'d %d\n", 1000000000000, 1000000000000 } EOF 2. run using bash or so 3. Actual results: 1,000,000,000,000 1,000,000,000,000 Expected results: 1,000,000,000,000 1000000000000 Additional info: I'll attach a patch.
Created attachment 201551 [details] Patch to unstick thousands separator flag
Applied in gawk-3.1.5-16.fc9, together with a patch for a new test case which checks for this bug.