tech-userlevel archive

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

Re: bin/57544: sed(1) and regex(3) problem with encoding

In article <a2ba5261-bf4a-f3c7-c614-c54088391e0f%SDF.ORG@localhost>,
RVP  <rvp%SDF.ORG@localhost> wrote:
>On Wed, 26 Jul 2023, wrote:
>> $ export LC_CTYPE=fr_FR.ISO8859-15
>> and then:
>> $ echo "??" | sed 's/??\&eacute;/g'
>> sed: 1: "s/??\&eacute;/g": RE error: trailing backslash (\)
>Not running NetBSD right now, but, FreeBSD 13.2 has the same issue which
>can be seen even with a plain grep(1)--as it relies on the libc regexp
>Can you try the patch below (it is for NetBSD):

Why don't we make next and end unsigned char so that all instances are fixed?


Home | Main Index | Thread Index | Old Index