From patchwork Sat Sep 26 10:07:51 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bhavikkumar Girishbhai Ronvelia X-Patchwork-Id: 99257 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FD18C98328 for ; Sat, 26 Sep 2026 10:08:38 +0000 (UTC) Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.16416.1790417317246177842 for ; Sat, 26 Sep 2026 03:08:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@windriver.com header.s=PPS06212021 header.b=LhR1F81+; spf=none, err=permanent DNS error (domain: oak-lpgbuild14.wrs.com, ip: 205.220.166.238, mailfrom: prvs=37298c9b3f=bronveli@oak-lpgbuild14.wrs.com) Received: from pps.filterd (m0250810.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68Q9jr84727474 for ; Sat, 26 Sep 2026 03:08:35 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=cc:content-transfer-encoding:content-type:date:from :message-id:mime-version:subject:to; s=PPS06212021; bh=fZngmjXqJ rxA0IzDEV9DtMNJc36cgfcmdclKd31yAog=; b=LhR1F81+hBp4Yd5GJQ7SDSfzD 13IxX96ac1/9PvLnEBNwQI7Jr7Psur0dzxefryuPo6wShX/AjozZiCwTuQhfQraR GoCkKZp1rCYKu5tkX1Mg44D0Zqa/XKY7lk72PE41XbE0c/V5MSF72PQ9SYw+5DZ/ tf+mxzHwu0K6/XsRe0HHVexM0hEaseCdTbMS9cgO55AKFbfXRnvZXIXeWQJfb5pa N2MG2QQWZMwf+IM/8qAn02zqW5+i6H0bIa3NTHhnOGAsZ30a9eWoTWJCzRMn8p9c e2axmSAjvm9Euj7z+y1TwZdAbr2Hs0WkOuuXeLoxLEmf0BBwrwjq8zXFnHfUQ== Received: from ala-exchng02.corp.ad.wrs.com (ala-exchng02.wrs.com [128.224.246.37]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 4gx9b1r386-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 26 Sep 2026 03:08:35 -0700 (PDT) Received: from ala-p2exch01.corp.ad.wrs.com (10.11.226.101) by ALA-EXCHNG02.corp.ad.wrs.com (10.11.224.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Sat, 26 Sep 2026 03:08:34 -0700 Received: from ala-exchng01.corp.ad.wrs.com (10.11.224.121) by ala-p2exch01.corp.ad.wrs.com (10.11.226.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.2562.46; Sat, 26 Sep 2026 03:08:34 -0700 Received: from oak-lpgbuild14.wrs.com (10.11.232.110) by ala-exchng01.corp.ad.wrs.com (10.11.224.121) with Microsoft SMTP Server id 15.1.2507.61 via Frontend Transport; Sat, 26 Sep 2026 03:08:34 -0700 Received: by oak-lpgbuild14.wrs.com (Postfix, from userid 1762447622) id 2FD456D00234; Sat, 26 Sep 2026 10:08:34 +0000 (UTC) From: Bhavikkumar Girishbhai Ronvelia To: CC: Bhavikkumar Girishbhai Ronvelia Subject: [OE-core][PATCH] libpcre2-ptest: add testoutput3C for locale variant Date: Sat, 26 Sep 2026 10:07:51 +0000 Message-ID: <20260926100814.2640444-1-BhavikkumarGirishbhai.Ronvelia@windriver.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYw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eIkwLe147aQ/fPle8pTwt+sv3AA6P7R+mLYtiVgBCEZnhxbZdRz8ZEi aoC625HFxpGqaG6AH4/C54P7wGCKJu5hUdV1/ApwcHDqfxO0tZAp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-26_02,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 adultscore=0 malwarescore=0 phishscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609260040 X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-0064b401.pphosted.com id 68Q9jr84727474 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 26 Sep 2026 10:08:38 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/246634 Test 3 (locale-specific features) fails because testoutput3C is missing. The fr_FR locale on current glibc does not classify extended Latin-1 bytes as alphabetic, producing different output from testoutput3/3A/3B. Add testoutput3C matching actual glibc behavior. Signed-off-by: Bhavikkumar Girishbhai Ronvelia --- .../libpcre/libpcre2/testoutput3C | 174 ++++++++++++++++++ .../recipes-support/libpcre/libpcre2_10.48.bb | 2 + 2 files changed, 176 insertions(+) create mode 100644 meta/recipes-support/libpcre/libpcre2/testoutput3C diff --git a/meta/recipes-support/libpcre/libpcre2/testoutput3C b/meta/recipes-support/libpcre/libpcre2/testoutput3C new file mode 100644 index 0000000000..05bb20fc44 --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre2/testoutput3C @@ -0,0 +1,174 @@ +# This set of tests checks local-specific features, using the "fr_FR" locale. +# It is almost Perl-compatible. When run via RunTest, the locale is edited to +# be whichever of "fr_FR", "french", or "fr" is found to exist. There is +# different version of this file called wintestinput3 for use on Windows, +# where the locale is called "french" and the tests are run using +# RunTest.bat. + +#forbid_utf + +/^[\w]+/ +\= Expect no match + École +No match + +/^[\w]+/locale=fr_FR + École +No match + +/^[\W]+/ + École + 0: \xc9 + +/^[\W]+/locale=fr_FR +\= Expect no match + École + 0: \xc9 + +/[\b]/ + \b + 0: \x08 +\= Expect no match + a +No match + +/[\b]/locale=fr_FR + \b + 0: \x08 +\= Expect no match + a +No match + +/^\w+/ +\= Expect no match + École +No match + +/^\w+/locale=fr_FR + École +No match + +/(.+)\b(.+)/ + École + 0: \xc9cole + 1: \xc9 + 2: cole + +/(.+)\b(.+)/locale=fr_FR +\= Expect no match + École + 0: \xc9cole + 1: \xc9 + 2: cole + +/École/i + École + 0: \xc9cole +\= Expect no match + école +No match + +/École/i,locale=fr_FR + École + 0: \xc9cole + école +No match + +/\w/I +Capture group count = 0 +Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P + Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z +Subject length lower bound = 1 + +/\w/I,locale=fr_FR +Capture group count = 0 +Starting code units: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P + Q R S T U V W X Y Z _ a b c d e f g h i j k l m n o p q r s t u v w x y z +Subject length lower bound = 1 + +# All remaining tests are in the fr_FR locale, so set the default. + +#pattern locale=fr_FR + +/^[\xc8-\xc9]/i + École + 0: \xc9 + école +No match + +/^[\xc8-\xc9]/ + École + 0: \xc9 +\= Expect no match + école +No match + +/\xb5/i + µ + 0: \xb5 +\= Expect no match + \x9c +No match + +/ÿ/i + \xff + 0: \xff +\= Expect no match + y +No match + +/(.)\1/i + \xfe\xde +No match + +/\W+/ + >>>\xaa<<< + 0: >>>\xaa<<< + >>>\xba<<< + 0: >>>\xba<<< + +/[\W]+/ + >>>\xaa<<< + 0: >>>\xaa<<< + >>>\xba<<< + 0: >>>\xba<<< + +/[^[:alpha:]]+/ + >>>\xaa<<< + 0: >>>\xaa<<< + >>>\xba<<< + 0: >>>\xba<<< + +/\w+/ + >>>\xaa<<< +No match + >>>\xba<<< +No match + +/[\w]+/ + >>>\xaa<<< +No match + >>>\xba<<< +No match + +/[[:alpha:]]+/ + >>>\xaa<<< +No match + >>>\xba<<< +No match + +/[[:alpha:]][[:lower:]][[:upper:]]/IB +------------------------------------------------------------------ + Bra + [A-Za-z] + [a-z] + [A-Z] + Ket + End +------------------------------------------------------------------ +Capture group count = 0 +Starting code units: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z + a b c d e f g h i j k l m n o p q r s t u v w x y z +Subject length lower bound = 3 + +# End of testinput3 diff --git a/meta/recipes-support/libpcre/libpcre2_10.48.bb b/meta/recipes-support/libpcre/libpcre2_10.48.bb index d5daff03c0..56791171c2 100644 --- a/meta/recipes-support/libpcre/libpcre2_10.48.bb +++ b/meta/recipes-support/libpcre/libpcre2_10.48.bb @@ -14,6 +14,7 @@ LIC_FILES_CHKSUM = "file://LICENCE.md;md5=6720bf3bcff57543b915c2b22e526df0 \ SRC_URI = "${GITHUB_BASE_URI}/download/pcre2-${PV}/pcre2-${PV}.tar.bz2 \ file://run-ptest \ + file://testoutput3C \ " GITHUB_BASE_URI = "https://github.com/PCRE2Project/pcre2/releases" @@ -63,6 +64,7 @@ BBCLASSEXTEND = "native nativesdk" do_install_ptest() { t=${D}${PTEST_PATH} cp -r ${S}/testdata $t + cp ${UNPACKDIR}/testoutput3C $t/testdata/testoutput3C for i in pcre2posix_test pcre2grep pcre2test; do "${B}/libtool" --mode=install install "${B}/$i" "$t"