Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116506 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55033 invoked from network); 25 Nov 2021 09:42:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Nov 2021 09:42:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 00B3C18053D for ; Thu, 25 Nov 2021 02:40:03 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 25 Nov 2021 02:40:02 -0800 (PST) Received: by mail-ed1-f49.google.com with SMTP id e3so23644386edu.4 for ; Thu, 25 Nov 2021 02:40:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b7IVnEkqLuPrcgHrT9rGfJJpxcl63hFd3CN36g2ydww=; b=YcPQ3BCKRMjGvy329A9L8hT+lCDMKX/LE1AnHRWlaB1RuDyz5s7Sfqs6rirUNATBJW 1Y1VoIZhzM4qgUfmFKReX7kldPvw/PhrMczSez8x+mKfo5JACXyQirUXn9Ag7xgCqZ53 i27fg4IaliFaymkTHuIn+Ov4WzySt1umTkaG4YQMtwLPfhTGGTJZ3ltMEPzzn+9/2JHD OCUO6EM45wioK+lfwuD5L5Th7IZaSZmnjKV/vxVrilo+phIciRZaEMXXSnSCGafFqj1h JL+DGp4T4A8ToLVIT7ysXbcVyuH7yDtdm1i5Vl49A5gUbYeFfZMx5M6N0CvMJEyGDL3d rvwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b7IVnEkqLuPrcgHrT9rGfJJpxcl63hFd3CN36g2ydww=; b=g0Ha4cEPuhorlXX2P+ep6kPz9Flj5BSSUIY6FSMT3iDlhW0JPdCmx3PlSUVC507kYK Ysa3vnutwN/QgRhrryMjxYjxIow1eOj8fV/UTNtME9LSF5rjDcsiO8Rht8YnkZQ41Www G4K3BdXMtjHklrobb3u6N9La7Qcojd6THm5Haizaks2uMKy7ggbepf7ObX81w7rLKvf7 nqgI0oVJ7dfU6y1R2So+fE1G+KWpVVYiB+OmiIW9qdwmlseDxgq3Jkb1omqOknpJg4bk q6SGJNgOZsKfSf9eREyAshgNH5TS3zWkRjax8GJF1HiabF+ZtaTFjWO/KX4nibC3R7w7 hkiw== X-Gm-Message-State: AOAM532uPstAmV/e3SqtlFteukZ/ItcB5cmLCQMGQHUzRC6KYGBA89wV wRDpvQnud+trEjzqgX5atfV7hRPiIG7hZv2FYCOaG2hcgWc= X-Google-Smtp-Source: ABdhPJyNdBVHPqlFcLsacj0NGjcvCmk0CKgaqKxh/SDYacxXLsdCn48E9TasO/jJiV/T+w9LpshHiydRCXW0S1sOXe4= X-Received: by 2002:a05:6402:27cd:: with SMTP id c13mr37578231ede.57.1637836801397; Thu, 25 Nov 2021 02:40:01 -0800 (PST) MIME-Version: 1.0 References: <757fcf17-4d8b-0eee-8226-e88705d92795@wikimedia.org> <59feb482-2dec-3fdc-1104-5a47cb627634@wikimedia.org> <303db338-d0bc-cf9e-cb5a-091cef3ac3ab@gmx.de> In-Reply-To: <303db338-d0bc-cf9e-cb5a-091cef3ac3ab@gmx.de> Date: Thu, 25 Nov 2021 11:39:49 +0100 Message-ID: To: "Christoph M. Becker" Cc: Tim Starling , Internals Mailing List Content-Type: multipart/alternative; boundary="000000000000bf571d05d19a987c" Subject: Re: [PHP-DEV] [VOTE] Locale-independent case conversion From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --000000000000bf571d05d19a987c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le jeu. 25 nov. 2021 =C3=A0 11:34, Christoph M. Becker = a =C3=A9crit : > On 25.11.2021 at 10:58, Nicolas Grekas wrote: > > > Le jeu. 25 nov. 2021 =C3=A0 10:47, Tim Starling a > > =C3=A9crit : > > > >> 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 future. > > Yeah, the PHP manual says[1]: > > | This function implements a comparison algorithm that orders > | alphanumeric strings in the way a human being would, this is described > | as a "natural ordering". > > [1] > Yep, yet "natural language processing" means processing sentences we write as humans, e.g. processing this very message. natcase sorting functions are not done for that. They're useful to sort items in a list - typically file names - in a way that makes sense to humans. This is very different from "natural language processing". Having "natsort" vary by locale doesn't make more sense than having "sort()" vary by locale. That's my point. The argument doesn't stand against implementing locale-insensitivity for these functions and I think the RFC shouldn't make it (the argument.) Nicolas --000000000000bf571d05d19a987c--