Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15591

Minor utf32-to-utf8 bug

From István Pásztor <pasztorpisti@gmail.com>
Newsgroups gnu.bash.bug
Subject Minor utf32-to-utf8 bug
Date 2019-11-10 14:07 +0000
Message-ID <mailman.1182.1573396992.13325.bug-bash@gnu.org> (permalink)
References <CAFg+f+oDHn-5fyQGR4u3AWVTzwwXzDxv8y_kM8hb5_MAdZmurw@mail.gmail.com>

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi

The encoding of six bytes long utf-8 sequences is buggy. Today unicode
requires at most 4 bytes long utf-8 sequences but if we handle 5 and 6 too
then let's do it the right way.

The attached patch was created using a fresh master clone
(d894cfd104086ddf68c286e67a5fb2e02eb43b7b).

I'm writing a tool (pxargs, an xargs variant) that can accept input strings
in shell-quoted format and used the bash manual and source code as
references. I haven't compiled the latest bash sources to check the bug but
it is likely to affect ANSI-C quoted strings like $'\U7fffffff'.

Best Regards,
Istvan Pasztor

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Minor utf32-to-utf8 bug István Pásztor <pasztorpisti@gmail.com> - 2019-11-10 14:07 +0000

csiph-web