[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash: remove the format string "%q" in the unicode3.sub
From: |
Chet Ramey |
Subject: |
Re: bash: remove the format string "%q" in the unicode3.sub |
Date: |
Tue, 9 Aug 2016 10:39:13 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
On 8/9/16 3:18 AM, dengke.du@windriver.com 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 chet@case.edu http://cnswww.cns.cwru.edu/~chet/