test/lc_num1.awk
raw| 1 | # Bug reported by Ulrich Drepper. |
| 2 | # BEGIN { |
| 3 | # printf("%'d %d\n", 1000000, 1000000) |
| 4 | # } |
| 5 | |
| 6 | # April 2010: |
| 7 | # This needs to be a smarter test so that systems without the %'d flag |
| 8 | # don't generate a needless failure. |
| 9 | |
| 10 | BEGIN { |
| 11 | s = sprintf("%'d", 1234) |
| 12 | if (s == "1,234" || s == "1234") |
| 13 | print "ok, or at least the quote flag isn't supported" |
| 14 | else { |
| 15 | command = "od -c" |
| 16 | print("fail:", s) | command |
| 17 | close(command) |
| 18 | } |
| 19 | } |