From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.5 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_GREY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 5B6A21F4D7 for ; Wed, 25 May 2022 02:41:23 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sendgrid.me header.i=@sendgrid.me header.b="PUDo/ndZ"; dkim-atps=neutral Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 1C438120B40; Wed, 25 May 2022 11:41:19 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id CAAAC120B32 for ; Wed, 25 May 2022 11:41:16 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendgrid.me; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to; s=smtpapi; bh=6+f9XhfKzM+fWDoxVyfy7Ou/bh/dJm590ble/rIGkwE=; b=PUDo/ndZrFWSu1zt8uKh/ryKfDfDDYPhbS4A23YAtcCkVnkFAK8F+FVJBCmfAIKkM/Rr yf3lJUpBbq4pXBDK0SPWo154aXzLJoyJj2vNOCFXdZBZTZPOxzLiBrxxUKK+uuRs1dCEHl 2/Xvo4MwuduLAa8lokvCkAyKdplYA29+A= Received: by filterdrecv-67b64bbffd-qjktw with SMTP id filterdrecv-67b64bbffd-qjktw-1-628D9748-11 2022-05-25 02:41:12.422937856 +0000 UTC m=+4164948.096637547 Received: from herokuapp.com (unknown) by geopod-ismtpd-6-2 (SG) with ESMTP id cP4C5nPdSnaHQ03NMb__Wg for ; Wed, 25 May 2022 02:41:12.281 +0000 (UTC) Date: Wed, 25 May 2022 02:41:12 +0000 (UTC) From: cohei Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 18802 X-Redmine-Issue-Author: cohei X-Redmine-Sender: cohei X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 85057 X-SG-EID: =?us-ascii?Q?4=2FJ6elt+zz7tRHWcoF0k9coKhHmM90XCuDYZYJZ2kqjNMQibY98Gnfz6gVXIyw?= =?us-ascii?Q?ioS8pOznXTQnX3POQVSutURU32NfSp7XOTLKyMk?= =?us-ascii?Q?TW4rBA2qVvpPTmehg4yXWy1J0kiDaLPIcG2onAd?= =?us-ascii?Q?prdjGNB1NYhPC31QRJbmVW8RgLGAw2Yrce543d=2F?= =?us-ascii?Q?u9bwUHUgnOec5NP3b=2FUeCebldZ6=2Fn4w1vqdvZK7?= =?us-ascii?Q?N53Q9ma0v=2FKgD48tHCbUYej0ywCxGYXYq1eGsGf?= =?us-ascii?Q?vh0pDxwM4ooQUjpSd5=2Fow=3D=3D?= To: ruby-dev@ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-dev X-Mail-Count: 51182 Subject: [ruby-dev:51182] [Ruby master Bug#18802] Negation of POSIX character class does not work X-BeenThere: ruby-dev@ruby-lang.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Ruby developers \(Japanese\)" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Reply-To: "Ruby developers \(Japanese\)" Errors-To: ruby-dev-bounces@ruby-lang.org Sender: "ruby-dev" Issue #18802 has been reported by cohei (=E6=98=82=E5=B9=B3 =E8=B0=B7=E5=8F= =A3).=0D =0D ----------------------------------------=0D Bug #18802: Negation of POSIX character class does not work=0D https://bugs.ruby-lang.org/issues/18802=0D =0D * Author: cohei (=E6=98=82=E5=B9=B3 =E8=B0=B7=E5=8F=A3)=0D * Status: Open=0D * Priority: Normal=0D * ruby -v: 3.1.2=0D * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN=0D ----------------------------------------=0D > https://docs.ruby-lang.org/ja/3.1/doc/spec=3D2fregexp.html#charclass_posi= x=0D > =E3=81=BE=E3=81=9F=E3=80=81[:^=E3=82=AF=E3=83=A9=E3=82=B9=E5=90=8D:]=E3= =81=A8=E3=81=84=E3=81=86=E8=A8=98=E6=B3=95=E3=81=A7=E3=81=9D=E3=81=AE=E5=90= =A6=E5=AE=9A=E3=82=92=E6=84=8F=E5=91=B3=E3=81=97=E3=81=BE=E3=81=99=E3=80=82=0D =0D For example, `[:^ascii:]` is the negation of `[:ascii:]` according to the d= ocument. But it does not work:=0D =0D ```ruby=0D irb(main):001:0> RUBY_VERSION=0D =3D> "3.1.2"=0D irb(main):002:0> %w[=E3=81=82=E3=81=82=E3=81=82 =E3=81=82 a b :].map { _1.m= atch?(/[:^ascii:]/) }=0D =3D> [false, false, true, false, true] # matches a, c, i, s, : or ^=0D irb(main):003:0> %w[=E3=81=82=E3=81=82=E3=81=82 =E3=81=82 a b :].map { _1.m= atch?(/[^[:ascii:]]/) }=0D =3D> [true, true, false, false, false] # expected=0D ```=0D =0D =0D =0D --=20=0D https://bugs.ruby-lang.org/=0D