[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[coreutils] [PATCH] tests: fix a printf portability issue
From: |
Pádraig Brady |
Subject: |
[coreutils] [PATCH] tests: fix a printf portability issue |
Date: |
Sat, 18 Sep 2010 00:56:05 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
not all printf commands support \xhh
diff --git a/tests/misc/sort-debug-keys b/tests/misc/sort-debug-keys
index 57a52a6..4e8beff 100755
--- a/tests/misc/sort-debug-keys
+++ b/tests/misc/sort-debug-keys
@@ -275,7 +275,7 @@ printf "2.,,3\n2.4\n" | sort -s -k1n --debug
printf "2,,3\n2.4\n" | sort -s -k1n --debug
# -z means we convert \0 to \n
-printf "1a\x002b\x00" | sort -s -n -z --debug
+printf "1a\0002b\000" | sort -s -n -z --debug
# Check that \0 and \t intermix.
printf "\0\ta\n" | sort -s -k2b,2 --debug | tr -d '\0'
- [coreutils] [PATCH] tests: fix a printf portability issue,
Pádraig Brady <=