From 8435da9d8106513acd5c87b74f8a928073f2cd5d Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@fb.com>
Date: Fri, 7 Nov 2014 08:34:42 -0800
Subject: [PATCH 2/2] 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".
---
 tests/word-multibyte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/word-multibyte b/tests/word-multibyte
index 2a55406..f2caf97 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

-- 
2.1.2

