gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. db9a7ab5c20086


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. db9a7ab5c200863f3dcadb6358327fd7b95971ad
Date: Tue, 20 Mar 2012 18:56:46 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, gawk-4.0-stable has been updated
       via  db9a7ab5c200863f3dcadb6358327fd7b95971ad (commit)
      from  b630ded7a3489fc10a104f761013eb3b588fd408 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=db9a7ab5c200863f3dcadb6358327fd7b95971ad

commit db9a7ab5c200863f3dcadb6358327fd7b95971ad
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Mar 20 20:55:41 2012 +0200

    Add the test files for the previous commit. Sheesh.

diff --git a/test/printfbad3.awk b/test/printfbad3.awk
new file mode 100644
index 0000000..1cabdd7
--- /dev/null
+++ b/test/printfbad3.awk
@@ -0,0 +1,22 @@
+# Date: Wed, 14 Mar 2012 08:10:48 -0500
+# From: John Haque <address@hidden>
+# To: address@hidden
+# Subject: gawk printf format bug 
+# 
+# Hi.
+# 
+# I think this is a bug:
+# 
+# $ gawk 'BEGIN { printf("%.0x%#x%#x\n", 0, 167, 167)}'
+# 570xa7
+# 
+# It should print 0xa70xa7.
+# 
+# The solution is to initialize base to 0 in the beginning
+# of the while loop along with other stuff (format_tree).
+# 
+# Thanks.
+# 
+# John
+ 
+BEGIN { printf(">>%.0x<< >>%#x<< >>%#x<<\n", 0, 167, 167) }
diff --git a/test/printfbad3.ok b/test/printfbad3.ok
new file mode 100644
index 0000000..a87b019
--- /dev/null
+++ b/test/printfbad3.ok
@@ -0,0 +1 @@
+>><< >>0xa7<< >>0xa7<<

-----------------------------------------------------------------------

Summary of changes:
 test/printfbad3.awk |   22 ++++++++++++++++++++++
 test/printfbad3.ok  |    1 +
 2 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 test/printfbad3.awk
 create mode 100644 test/printfbad3.ok


hooks/post-receive
-- 
gawk



reply via email to

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