Re: Error UTF-8 strings
Hans Åberg <[email protected]>
| Newsgroups | gmane.comp.parsers.bison.bugs |
|---|---|
| Message-ID | <[email protected]> |
> On 21 Jun 2020, at 07:59, Akim Demaille <[email protected]> wrote: > > Hi Hans, > >> Le 20 juin 2020 à 22:54, Hans Åberg <[email protected]> a écrit : >> >> It seems that the writeout of error strings with UTF-8 have retrograded, because with Bison 3.6.3 I get: >> error: syntax error, unexpected "\302\260" >> >> I wrote a workaround code for this, and removed it when the issue seemed fixed, but now perhaps it should be put back again. > > Could you please give more details? How can I reproduce that? Use %token <name> "<string>" where <string> has non-ASCII characters (high bit set), and trigger it in a syntax error, as the failing token or one of the expected ones.