<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi ross<br>
<br>
After querying for the current maintainer of bash Chet Ramey, he
said the devel <br>
branch of bash have fixed it. So I will import those patchs later
for the bash tests<br>
suite.<br>
<br>
We can check the patchs at:<br>
<br>
<a class="moz-txt-link-freetext" href="http://git.savannah.gnu.org/cgit/bash.git/commit/tests/intl.right?h=devel&id=85ec0778f9d778e1820fb8c0e3e996f2d1103b45">http://git.savannah.gnu.org/cgit/bash.git/commit/tests/intl.right?h=devel&id=85ec0778f9d778e1820fb8c0e3e996f2d1103b45</a><br>
<a class="moz-txt-link-freetext" href="http://git.savannah.gnu.org/cgit/bash.git/diff/tests/intl.right?h=devel&id=74b8cbb41398b4453d8ba04d0cdd1b25f9dcb9e3">http://git.savannah.gnu.org/cgit/bash.git/diff/tests/intl.right?h=devel&id=74b8cbb41398b4453d8ba04d0cdd1b25f9dcb9e3</a><br>
<br>
//dengke<br>
<div class="moz-forward-container"><br>
<br>
-------- Forwarded Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
</th>
<td>Re: bash: remove the format string "%q" in the
unicode3.sub</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Tue, 9 Aug 2016 10:39:13 -0400</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td>Chet Ramey <a class="moz-txt-link-rfc2396E" href="mailto:chet.ramey@case.edu"><chet.ramey@case.edu></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Reply-To:
</th>
<td><a class="moz-txt-link-abbreviated" href="mailto:chet.ramey@case.edu">chet.ramey@case.edu</a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:dengke.du@windriver.com">dengke.du@windriver.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:dengke.du@windriver.com"><dengke.du@windriver.com></a>,
<a class="moz-txt-link-abbreviated" href="mailto:bug-bash@gnu.org">bug-bash@gnu.org</a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">CC: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:chet.ramey@case.edu">chet.ramey@case.edu</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>On 8/9/16 3:18 AM, <a class="moz-txt-link-abbreviated" href="mailto:dengke.du@windriver.com">dengke.du@windriver.com</a> wrote:
> Hi all
>
> When I run the tests for the bash, the sub-test unicode3.sub of intl.tests
> failed.
>
> The sub-test unicode3.sub contain the following:
>
> payload=$'\065\247\100\063\231\053\306\123\070\237\242\352\263'
> "$payload"
> printf %q "$payload"
>
> In this situation, the format string "%q" in command printf means that when the
> character in the payload is not in {alpha & digit & punctuation & ISO
> 646(7-bit)}, it
> would print the string with ANSI-C style quoted string: $'...' , we can
> check the source code
This has already been changed in the devel branch (back in May, 2015), and
the test case and tets output was changed at the same time.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU <a class="moz-txt-link-abbreviated" href="mailto:chet@case.edu">chet@case.edu</a> <a class="moz-txt-link-freetext" href="http://cnswww.cns.cwru.edu/~chet/">http://cnswww.cns.cwru.edu/~chet/</a>
</pre>
<br>
</div>
<br>
</body>
</html>