![]() |
|
Message-ID: <aCgxgwHW3XEGOIkV@voyager> Date: Sat, 17 May 2025 08:49:39 +0200 From: Markus Wichmann <nullplan@....net> To: musl@...ts.openwall.com Cc: Nuno Cruces <ncruces@...il.com> Subject: Re: strcasestr("", "") returns NULL Am Fri, May 16, 2025 at 01:37:41PM -0400 schrieb Rich Felker: > On Fri, May 16, 2025 at 05:59:22PM +0100, Nuno Cruces wrote: > > I wasn't suggesting they'd be used, just that they kinda demonstrate the > > problem is not absolutely intractable. > > In any case, if you're interested, glibc seems to use two-way for > > strcasestr, though I'm not sure if it supports every locale. > > I haven't looked into the details. > > Interesting -- I wonder how they do it. tolower(). That's how they do it. So yeah, it is just for single-byte locales. Ciao, Markus
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.