Re: [hackers] [sbase][PATCH] grep: remove = flag from readme

From: Mattias Andrée <maandree_AT_kth.se>
Date: Tue, 27 Dec 2016 18:32:52 +0100

On Tue, 27 Dec 2016 09:26:34 -0800
Evan Gates <evan.gates_AT_gmail.com> wrote:

> On Tue, Dec 27, 2016 at 3:09 AM, Laslo Hunhold
> <dev_AT_frign.de> wrote:
> > On Wed, 30 Mar 2016 19:01:16 +0200
> > Mattias Andrée <maandree_AT_kth.se> wrote:
> >
> > Hey Mattias,
> >
> >> $ echo äö | ./grep [å]
> >> äö
> >>
> >> This is not want one expects from
> >> a program that supports UTF-8.
> >
> > as a general note, we may think about adding a
> > setlocale() when we access the regex-engine. What do
> > you guys think?
> >
> > Cheers
> >
> > Laslo
> >
> > --
> > Laslo Hunhold <dev_AT_frign.de>
> >
>
> Given the two options of using setlocale() or writing our
> own regex engine, I think using setlocale() is the less
> sucky solution. If we want to revisit it in the future we
> can but it'll give us working tools now.
>

We still need a new regex-engine to support NUL bytes,
but perhaps that can be circumvented. We also need a
faster engine, currently both musl and glibc is too
slow for any serious grepping.

Received on Tue Dec 27 2016 - 18:32:52 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 27 2016 - 18:36:22 CET