summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2014-11-07 08:34:42 -0800
committerJim Meyering <meyering@fb.com>2014-11-07 09:06:36 -0800
commit8435da9d8106513acd5c87b74f8a928073f2cd5d (patch)
tree4a3becdcf2d2bc4fe1ded04bca8266af74a4243a
parent95dea21fcaa62d8d5efb2afe9d7c1afcd5ec496f (diff)
downloadgrep-8435da9d8106513acd5c87b74f8a928073f2cd5d.tar.gz
tests: avoid printf+\xHH portability trap
* tests/word-multibyte: Using the bourne shell's printf function with strings like "\xHH\xHH" happens to work for most interactive shells, but not for dash. That is not portable. Use our hex_printf_ awk wrapper instead. Without this change, this test would fail on a Debian system for which /bin/sh is configured to be "dash".
-rwxr-xr-xtests/word-multibyte2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/word-multibyte b/tests/word-multibyte
index 2a554068..f2caf977 100755
--- a/tests/word-multibyte
+++ b/tests/word-multibyte
@@ -4,7 +4,7 @@
require_en_utf8_locale_
-printf '\xc3\xa1\n' > in || framework_failure_
+hex_printf_ '\xc3\xa1\n' > in || framework_failure_
LC_ALL=en_US.UTF-8
export LC_ALL