Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Tim Starling
On 25/11/21 11:34 pm, Paul Crovella wrote: > On Thu, Nov 25, 2021 at 3:14 AM Tim Starling wrote: >> On 25/11/21 7:57 pm, Côme Chilliet wrote: >> >>> To reuse the example from the RFC, if I want to convert a UTF string to >>> uppercase using Turkish rules and get dotted capital I, what should I us

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Dan Ackroyd
On Thu, 25 Nov 2021 at 05:05, Tim Starling wrote: > > Voting is now open for my RFC on locale-independent case conversion. > It seems popular, and likely to pass, but I voted no as the "Backward Incompatible Changes" section is missing which makes it hard to evaluate the impact. cheers Dan Ack

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Paul Crovella
On Thu, Nov 25, 2021 at 3:14 AM Tim Starling wrote: > > On 25/11/21 7:57 pm, Côme Chilliet wrote: > > > To reuse the example from the RFC, if I want to convert a UTF string to > > uppercase using Turkish rules and get dotted capital I, what should I use? > > For case-insensitive comparison you ca

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Nicolas Grekas
Le jeu. 25 nov. 2021 à 12:23, Tim Starling a écrit : > On 25/11/21 8:58 pm, Nicolas Grekas wrote: > > > The RFC says: > > because they also use isdigit() and isspace(), > > Does that mean "too much work needed"? I would totally understand that of > course but I hope someone could do these last mi

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Tim Starling
On 25/11/21 8:58 pm, Nicolas Grekas wrote: > > The RFC says: > > because they also use isdigit() and isspace(), > > Does that mean "too much work needed"? I would totally understand > that of course but I hope someone could do these last miles. > Yes. > > and because they are intended for natural

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Tim Starling
On 25/11/21 7:57 pm, Côme Chilliet wrote: > Hello, > > The RFC is missing information about alternatives: > Do all of these function have an mbstring version? The following functions have an mbstring version: strtolower, strtoupper, stristr, stripos, strripos. mb_convert_case() provides functiona

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Nicolas Grekas
Le jeu. 25 nov. 2021 à 11:34, Christoph M. Becker a écrit : > On 25.11.2021 at 10:58, Nicolas Grekas wrote: > > > Le jeu. 25 nov. 2021 à 10:47, Tim Starling a > > écrit : > > > >> and because they are intended for natural language processing > > > > I definitely do not agree with this argument a

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Christoph M. Becker
On 25.11.2021 at 10:58, Nicolas Grekas wrote: > Le jeu. 25 nov. 2021 à 10:47, Tim Starling a > écrit : > >> and because they are intended for natural language processing > > I definitely do not agree with this argument and it should be removed from > the RFC to me as it might add confusion in the

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Nicolas Grekas
Le jeu. 25 nov. 2021 à 10:47, Tim Starling a écrit : > On 25/11/21 7:55 pm, Nicolas Grekas wrote: > > > I voted yes because I want to see this happen but I raised a point in > https://externals.io/message/116141#116259 and didn't get an answer: > > Despite their name, I never used natcase functio

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Tim Starling
On 25/11/21 7:55 pm, Nicolas Grekas wrote: > > I voted yes because I want to see this happen but I raised a point > in https://externals.io/message/116141#116259 > and didn't get an answer: > > Despite their name, I never used natcase functions for n

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Dusk
On Nov 25, 2021, at 01:08, Hans Henrik Bergan wrote: > btw why is this code *not* getting dotted capital i on 3v4l? > https://3v4l.org/D1WG1#v7.4.26 > it gets ["res_hex"]=> string(2) "49" > > setlocale(LC_ALL, "Turkish"); Because "Turkish" isn't a locale. "tr_TR" is. https://3v4l.org/GD91W#v7.

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Hans Henrik Bergan
btw why is this code *not* getting dotted capital i on 3v4l? https://3v4l.org/D1WG1#v7.4.26 it gets ["res_hex"]=> string(2) "49" $str, "str_hex"=>bin2hex($str), "res"=>$res, "res_hex"=>bin2hex($res), ]); ?> On Thu, 25 Nov 2021 at 09:57, Côme Chilliet wrote: > Le jeudi 25 novembre 20

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Côme Chilliet
Le jeudi 25 novembre 2021, 06:05:37 CET Tim Starling a écrit : > Voting is now open for my RFC on locale-independent case conversion. > > https://wiki.php.net/rfc/strtolower-ascii Hello, The RFC is missing information about alternatives: Do all of these function have an mbstring version? Are tho

Re: [PHP-DEV] [VOTE] Locale-independent case conversion

2021-11-25 Thread Nicolas Grekas
Le jeu. 25 nov. 2021 à 06:05, Tim Starling a écrit : > Voting is now open for my RFC on locale-independent case conversion. > > https://wiki.php.net/rfc/strtolower-ascii > > Voting will close in two weeks, on 2021-12-09. > Hi Tim, I voted yes because I want to see this happen but I raised a poi