]> git.ipfire.org Git - thirdparty/gettext.git/commit
awk-format: Accept null precision.
authorBruno Haible <bruno@clisp.org>
Sat, 21 Jun 2025 21:31:17 +0000 (23:31 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 21 Jun 2025 21:36:00 +0000 (23:36 +0200)
commit2305b059e2574b51791949062923bbcdc9d2a097
tree225be0abeaee4aacc6fa20a34107244b1cb375a9
parent3e7c882bd77ece8d0c1eab91e74d4e9dadac1f56
awk-format: Accept null precision.

Proof that it's valid:
$ echo 3.1415926 | gawk '{ printf "%.f", $1 }'

* gettext-tools/src/format-awk.c: Fix comment regarding the precision.
* gettext-tools/tests/format-awk-1: Add a test case with null precision.
gettext-tools/src/format-awk.c
gettext-tools/tests/format-awk-1