On 9/24/22 9:15 PM, Koichi Murase wrote:
Bash Version: 4.4
Patch Level: 12
Release Status: release
Description:
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
push.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/