[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] 4.3..devel: Fix printf %d "'X" affected by intermediate mbst

From: Chet Ramey
Subject: Re: [PATCH] 4.3..devel: Fix printf %d "'X" affected by intermediate mbstate_t
Date: Tue, 27 Sep 2022 14:45:28 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.0

On 9/24/22 9:15 PM, Koichi Murase wrote:

Bash Version: 4.4
Patch Level: 12
Release Status: release


   With a multi-byte encoding that has a non-trivial intermediate state
   (mbstate_t), « printf %d "'<char>" » can be affected by the internal
   mbstate_t of `mbtowc'/`mblen' to produce a wrong result.  Also, it
   can leave the internal mbstate_t in an intermediate state.

Thanks for the detailed report and fix. It will be in the next devel branch


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]