From nobody Fri Apr 21 19:14:21 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q343z6zDKz46mQv for ; Fri, 21 Apr 2023 19:15:27 +0000 (UTC) (envelope-from parv.0zero9@gmail.com) Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q343y1d9Xz4G6H for ; Fri, 21 Apr 2023 19:15:26 +0000 (UTC) (envelope-from parv.0zero9@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=MvZJ30e5; spf=pass (mx1.freebsd.org: domain of parv.0zero9@gmail.com designates 2607:f8b0:4864:20::b2e as permitted sender) smtp.mailfrom=parv.0zero9@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-b8ed0fa7546so2752853276.3 for ; Fri, 21 Apr 2023 12:15:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682104525; x=1684696525; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Sg9uJISx5LTcMGP+Aq8K86/X0tLzgpSPhZaihTAp6Mc=; b=MvZJ30e54GBsoENvvBeHbmeUfuPRINvowscGSOkHfM/MkG3AA7Qp1uw7P3nzJSzXfc y9ZluGbpwR3WOtWPQ+QgsrlyqYSXGKOHBO/x6W+9fz0Gx3nwYAFnpyjTsG4l75s17r1+ O5E+c3Nkxhd0IQmtOgZzinCtLVAHCCF5IdN1qAg9xW+WN6z6vK1yKkmMpo3m11D+ahMF t3OXPELqkNh3Gi0zm2KuzaAMAb7+sJhmLBjsIDGvrBvVw8+FKgVRAKwEwsOomG/u5gRO eCXib4078Eycwv4H80E97gnY0NXjCYKuXrR3An6tVFi7DdeoU9E/BX3bw8tHY5Vl6dvr BpAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682104525; x=1684696525; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Sg9uJISx5LTcMGP+Aq8K86/X0tLzgpSPhZaihTAp6Mc=; b=QY5Nh6SSQNf0Jb3fYENvQiAs7pjEgTV3l9R07IE+y4h+wHX3IVmhzraYa8PEonoS57 OyqnBUL00PQoaajXjGvHn9K/lJ/IQBfzI/ipWWZLYhMIbCs0IaTXHExR5oPz0/E8Ijj9 JAJA95UlhnHihHCFjsd4pSgHJJC9ZPYmoWajBog4QWVrpXa5+gptTsWhkNdX4F24/NQg n27b/8+cnlcynjbzicU+1dcr8Gei/2jjJaNo18BIW2o7QxSaF5LLgPaO+//D6b1MOKGV fPK4zRA+grNk+BZwFYQjGGWQWZmNVw4rDJbkQ0VIvceDeDZswgI2mNIxRxZUZ/yPLBUJ dhcA== X-Gm-Message-State: AAQBX9cDU0vgBm609/S1vn0GDSKoBcD+atcC+3HQZ97r42vjSCpfOKWa CujhNffhx1hiZVGxMKtpuxY1pvH7yiBd7j6IMCueXI1ESlkegg== X-Google-Smtp-Source: AKy350bDz5bP9hkjxJFrHmdAqcYX7/7vG0H48wEcfJRuTyhCABazl/ob8qfldCctFfsu/RuUz+4MKhhNlZdxGpXYAo4= X-Received: by 2002:a0d:dd93:0:b0:555:d4ad:8067 with SMTP id g141-20020a0ddd93000000b00555d4ad8067mr2370893ywe.17.1682104525285; Fri, 21 Apr 2023 12:15:25 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 From: "parv/FreeBSD" Date: Fri, 21 Apr 2023 09:14:21 -1000 Message-ID: Subject: Re: find(1): I18N gone wild? [[:alpha:]] not a substitute to refer 26 English letters A-Z To: freebsd-current@freebsd.org Content-Type: multipart/alternative; boundary="000000000000b46d6805f9dd7a33" X-Spamd-Result: default: False [-3.00 / 15.00]; FAKE_REPLY(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SUBJECT_HAS_QUESTION(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::b2e:from]; BLOCKLISTDE_FAIL(0.00)[2607:f8b0:4864:20::b2e:server fail]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TAGGED_FROM(0.00)[freebsd]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Q343y1d9Xz4G6H X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --000000000000b46d6805f9dd7a33 Content-Type: text/plain; charset="UTF-8" Wrote Dimitry Andric on Fri, 21 Apr 2023 10:38:05 UTC (via https://lists.freebsd.org/archives/freebsd-current/2023-April/003556.html ) > > ... However, I have read that with unicode, you should *never* > use [A-Z] or [0-9], but character classes instead. That seems to give > both files on macOS and Linux with [[:alpha:]]: ... Subject to the locale, problem with that is "[[:alpha:]]" will match more than 26 English letters "A" through "Z" (besides also matching lower case "a" through "z") even if none of 26 * 2 English alphabets appear in a string. - parv --000000000000b46d6805f9dd7a33 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Wrote=20 Dimitry Andric on=20 Fri, 21 Apr 2023 10:38:05 UTC
>
> ... However, I have read that with un= icode, you should *never*
> use [A-Z] or [0-9], but character classes instead. Th= at seems to give
> both files on macOS and Linux with [[:alpha:]]:
...

Subject to the locale, problem w= ith that is "[[:alpha:]]" will match
more than 26 English letters "A&= quot; through "Z" (besides also matching
lower case "a" through = "z") even if none of 26 * 2 English alphabets
appear in a string.


- parv

--000000000000b46d6805f9dd7a33--