From unknown Mon Jun 23 04:11:32 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71995: fmbtest unnecessarily skipped on FreeBSD Resent-From: Bruno Haible Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Mon, 08 Jul 2024 12:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71995 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: 71995@debbugs.gnu.org X-Debbugs-Original-To: bug-grep@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17204408977136 (code B ref -1); Mon, 08 Jul 2024 12:15:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jul 2024 12:14:57 +0000 Received: from localhost ([127.0.0.1]:49864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQnGi-0001r1-OG for submit@debbugs.gnu.org; Mon, 08 Jul 2024 08:14:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:56828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQnGg-0001qr-7A for submit@debbugs.gnu.org; Mon, 08 Jul 2024 08:14:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQnGa-0000z5-5M for bug-grep@gnu.org; Mon, 08 Jul 2024 08:14:48 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQnGX-0000oH-ND for bug-grep@gnu.org; Mon, 08 Jul 2024 08:14:47 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1720440881; cv=none; d=strato.com; s=strato-dkim-0002; b=X4cm2gRYhJXt569pBer42HeaDu/UwDnX83iVElLs2eO6Yv/EmxISchvSfuAQybAzwW Xzm6NyiOUHvwDWEnX3e8IpX9U/DVyj91k0ZEm3G6ceV20CatxSzhDspUqYgatrTgJ88x rw6Sf+qYPIQybW/DB1SkPaL9/eRn7N/3QAGR6R/FSITYCksfOhL2Iy+tNawh0Iv4JGNn H+BDY6/ZFhoko6cryrZKn5MI89Pe1huztMZFG5VHoToZCT4K/wSl9vaBgQFgImdlIlS5 5KGhYtLtBGHSEjr7HRkOZsDvmG4QvIEMVizRjWqyt7CuFAS+WA3yQJi2C9ngZiDm0kQm LNcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1720440881; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=h7mo/mm1ivvL/dnZTUhLP+OvBeAZztKYpg/yqSN91Ro=; b=nlTFASOEcSgIuIy0bZr+X0LdmQnwIaLQwgmNX5oigK/5a9fZTqx6GLvYTdtCDbw1Gj 1mJ5lBLr+nXYHgo1dTXrP1BsMRz0D4m+8Q6mrFMnQsO9XreuXTrHdJWKa3DmaHxFQVDE JBZh/v58Eo2enOHnmRVGSBVNiK0rnOGWXbR03TEljRQF+CLGpH1HpjHRJlwcHChf1vkb gU5apVf7kG4FiTLTBF+RnZFkTf31kNrcaZZRhSJt9TmVv0j5TufYT0x7IXUL+/FeZAL2 62WJLPJR1pGWBh03TR8vkNy3o03/S0HCXATT8tfIyumfvdbF0sU4jZvWRRm2xzjXWQwP oisg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1720440881; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=h7mo/mm1ivvL/dnZTUhLP+OvBeAZztKYpg/yqSN91Ro=; b=KEnem4tJWKWocvJpTphcCD+PPuTUtBhaScTkmn1aiulcvbUAs2f6ZygxlhChcub5uY ce9fILwsLXdBVRTZHBZeimKj+MHruCXOV/7ZZa3THnZu5BBdHCbmTJMElPCH7BEAfCJ9 5F4wgI3+10tfgot1EA4yZzoQjHbZevbp+ihKmyMrkcgH8Z3hO+175ECrFbyDfa8gAA7o wqR1MHP458xxbUa90p21mk2n7p0yFjYM1MnVRvd5EV/crY7oNjLSMqN9BbWA9LJHf4zc KsuMJO7v3bSTHzXVbBesWYfI8Tkr/TKtnI3l0pWhaszwzfIg+T09NdlNsJ9SVCJrnKZD wBtQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1720440881; s=strato-dkim-0003; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=h7mo/mm1ivvL/dnZTUhLP+OvBeAZztKYpg/yqSN91Ro=; b=EdmyMECfHDXzW6291SjevFju3t4d3Xe6eswizWxc9QYYCoijWme1QfR89utT21vHPg k88M8b6WW080Gr8XcOBA== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOej/ewqxKFa1x/mS4TAiahFrERvA==" Received: from nimes.localnet by smtp.strato.de (RZmta 50.5.0 AUTH) with ESMTPSA id N0957e068CEfWqJ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 8 Jul 2024 14:14:41 +0200 (CEST) From: Bruno Haible Date: Mon, 08 Jul 2024 14:14:41 +0200 Message-ID: <2220002.NgBsaNRSFp@nimes> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart2814117.BEx9A2HvPv" Content-Transfer-Encoding: 7Bit Received-SPF: none client-ip=81.169.146.161; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This is a multi-part message in MIME format. --nextPart2814117.BEx9A2HvPv Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Building grep-3.11 on FreeBSD 14.0, "make check" reports that the fmbtest test is skipped: fmbtest: skipped test: this system lacks the cs_CZ.UTF-8 locale SKIP: fmbtest But $ locale -a | grep cs_CZ cs_CZ.ISO8859-2 cz_CZ.UTF-8 shows that the system does have this locale. The cause is that this invocation of 'locale' does not work: $ locale -k LC_CTYPE Unknown keyword: `LC_CTYPE` But this one works: $ locale charmap UTF-8 => Patch attached. It fixes the problem: it makes the test PASS. 'locale charmap' is known to work portably for ages; see https://git.savannah.gnu.org/gitweb/?p=libiconv.git;a=tree;f=libcharset/tools;h=f756e65e5ea8fef47afc8bb7ae1094e169012c78;hb=HEAD --nextPart2814117.BEx9A2HvPv Content-Disposition: attachment; filename="0001-tests-Fix-recognition-of-cs_CZ.UTF-8-locale-on-FreeB.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="0001-tests-Fix-recognition-of-cs_CZ.UTF-8-locale-on-FreeB.patch" >From a4501af35dcc7603ee5f500aa87aafe577958010 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 8 Jul 2024 14:06:16 +0200 Subject: [PATCH] tests: Fix recognition of cs_CZ.UTF-8 locale on FreeBSD. * tests/fmbtest: Use 'locale charmap' to determine the locale's encoding. * tests/foad1: Likewise. --- tests/fmbtest | 2 +- tests/foad1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fmbtest b/tests/fmbtest index 38dd49d..f3404fd 100755 --- a/tests/fmbtest +++ b/tests/fmbtest @@ -10,7 +10,7 @@ cz=cs_CZ.UTF-8 # If cs_CZ.UTF-8 locale doesn't work, skip this test. -LC_ALL=$cz locale -k LC_CTYPE 2>/dev/null | grep -q charmap.*UTF-8 \ +test "`LC_ALL=$cz locale charmap 2>/dev/null`" = UTF-8 \ || skip_ this system lacks the $cz locale # If matching is done in single-byte mode, skip this test too diff --git a/tests/foad1 b/tests/foad1 index 3a29f9e..b87e3f3 100755 --- a/tests/foad1 +++ b/tests/foad1 @@ -150,7 +150,7 @@ Exit $failures # The rest of this file is meant to be executed under this locale. LC_ALL=cs_CZ.UTF-8; export LC_ALL # If the UTF-8 locale doesn't work, skip these tests silently. -locale -k LC_CTYPE 2>/dev/null | grep -q "charmap.*UTF-8" || Exit $failures +test "`locale charmap 2>/dev/null`" = UTF-8 || Exit $failures # Test character class erroneously matching a '[' character. grep_test "[/" "" "[[:alpha:]]" -E -- 2.34.1 --nextPart2814117.BEx9A2HvPv-- From unknown Mon Jun 23 04:11:32 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Bruno Haible Subject: bug#71995: closed (Re: bug#71995: fmbtest unnecessarily skipped on FreeBSD) Message-ID: References: <523c9a1a-8ae5-4bb8-9333-415811f3cddc@cs.ucla.edu> <2220002.NgBsaNRSFp@nimes> X-Gnu-PR-Message: they-closed 71995 X-Gnu-PR-Package: grep Reply-To: 71995@debbugs.gnu.org Date: Tue, 09 Jul 2024 12:49:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1720529342-26707-1" This is a multi-part message in MIME format... ------------=_1720529342-26707-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #71995: fmbtest unnecessarily skipped on FreeBSD which was filed against the grep package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 71995@debbugs.gnu.org. --=20 71995: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71995 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1720529342-26707-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 71995-done) by debbugs.gnu.org; 9 Jul 2024 12:48:30 +0000 Received: from localhost ([127.0.0.1]:52354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRAGk-0006vs-An for submit@debbugs.gnu.org; Tue, 09 Jul 2024 08:48:30 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:52016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRAGi-0006vd-29 for 71995-done@debbugs.gnu.org; Tue, 09 Jul 2024 08:48:28 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id E15423C00E409; Tue, 9 Jul 2024 05:48:15 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id 8Zu36JK3qL0m; Tue, 9 Jul 2024 05:48:15 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id AC0023C00E40A; Tue, 9 Jul 2024 05:48:15 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu AC0023C00E40A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1720529295; bh=KRzllEZo/EPiexQB48wBzI40g+yloPleOOw2gRVpvN8=; h=Message-ID:Date:MIME-Version:To:From; b=Qewf2kkSqe/sv+XMopnx2YKb3OL/WIPr6EUf3kqSv/fzGBPwoiROkLo7XKWWBwwSf T+5Lr3MAXvmjrLqiZbZJASy9y+T87ghwqvLqK2XvYAav2vMcRX8FmV2VQf6vh3wWOs NqT3GbCrvRAQYPsI9N3Uy2co4cIRP1oGV29MCFIEeN4r0hCkLWDQwPL76RiT6sPa7c sX4UoJuYjFy+lhmSvziM9oYqmESXOGTrvOq16rfTHeHktryls0OrqYK/ZO7X9UrGRP ufqJN5BkFM09PQUqFBmTisBNe06Fx6CiY6HW+dypgGyC34cMMwD2xM5d9uNGzoO+ti B/dKULX/9xV1g== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id GZhLppqUjqvZ; Tue, 9 Jul 2024 05:48:15 -0700 (PDT) Received: from [192.168.1.103] (i15-les02-ntr-176-181-187-105.sfr.lns.abo.bbox.fr [176.181.187.105]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id BBE033C00E409; Tue, 9 Jul 2024 05:48:14 -0700 (PDT) Message-ID: <523c9a1a-8ae5-4bb8-9333-415811f3cddc@cs.ucla.edu> Date: Tue, 9 Jul 2024 14:48:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#71995: fmbtest unnecessarily skipped on FreeBSD To: Bruno Haible References: <2220002.NgBsaNRSFp@nimes> Content-Language: en-US From: Paul Eggert In-Reply-To: <2220002.NgBsaNRSFp@nimes> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 71995-done Cc: 71995-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thanks, I installed that. ------------=_1720529342-26707-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Jul 2024 12:14:57 +0000 Received: from localhost ([127.0.0.1]:49864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQnGi-0001r1-OG for submit@debbugs.gnu.org; Mon, 08 Jul 2024 08:14:57 -0400 Received: from lists.gnu.org ([209.51.188.17]:56828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQnGg-0001qr-7A for submit@debbugs.gnu.org; Mon, 08 Jul 2024 08:14:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQnGa-0000z5-5M for bug-grep@gnu.org; Mon, 08 Jul 2024 08:14:48 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.161]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQnGX-0000oH-ND for bug-grep@gnu.org; Mon, 08 Jul 2024 08:14:47 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1720440881; cv=none; d=strato.com; s=strato-dkim-0002; b=X4cm2gRYhJXt569pBer42HeaDu/UwDnX83iVElLs2eO6Yv/EmxISchvSfuAQybAzwW Xzm6NyiOUHvwDWEnX3e8IpX9U/DVyj91k0ZEm3G6ceV20CatxSzhDspUqYgatrTgJ88x rw6Sf+qYPIQybW/DB1SkPaL9/eRn7N/3QAGR6R/FSITYCksfOhL2Iy+tNawh0Iv4JGNn H+BDY6/ZFhoko6cryrZKn5MI89Pe1huztMZFG5VHoToZCT4K/wSl9vaBgQFgImdlIlS5 5KGhYtLtBGHSEjr7HRkOZsDvmG4QvIEMVizRjWqyt7CuFAS+WA3yQJi2C9ngZiDm0kQm LNcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1720440881; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=h7mo/mm1ivvL/dnZTUhLP+OvBeAZztKYpg/yqSN91Ro=; b=nlTFASOEcSgIuIy0bZr+X0LdmQnwIaLQwgmNX5oigK/5a9fZTqx6GLvYTdtCDbw1Gj 1mJ5lBLr+nXYHgo1dTXrP1BsMRz0D4m+8Q6mrFMnQsO9XreuXTrHdJWKa3DmaHxFQVDE JBZh/v58Eo2enOHnmRVGSBVNiK0rnOGWXbR03TEljRQF+CLGpH1HpjHRJlwcHChf1vkb gU5apVf7kG4FiTLTBF+RnZFkTf31kNrcaZZRhSJt9TmVv0j5TufYT0x7IXUL+/FeZAL2 62WJLPJR1pGWBh03TR8vkNy3o03/S0HCXATT8tfIyumfvdbF0sU4jZvWRRm2xzjXWQwP oisg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1720440881; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=h7mo/mm1ivvL/dnZTUhLP+OvBeAZztKYpg/yqSN91Ro=; b=KEnem4tJWKWocvJpTphcCD+PPuTUtBhaScTkmn1aiulcvbUAs2f6ZygxlhChcub5uY ce9fILwsLXdBVRTZHBZeimKj+MHruCXOV/7ZZa3THnZu5BBdHCbmTJMElPCH7BEAfCJ9 5F4wgI3+10tfgot1EA4yZzoQjHbZevbp+ihKmyMrkcgH8Z3hO+175ECrFbyDfa8gAA7o wqR1MHP458xxbUa90p21mk2n7p0yFjYM1MnVRvd5EV/crY7oNjLSMqN9BbWA9LJHf4zc KsuMJO7v3bSTHzXVbBesWYfI8Tkr/TKtnI3l0pWhaszwzfIg+T09NdlNsJ9SVCJrnKZD wBtQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1720440881; s=strato-dkim-0003; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=h7mo/mm1ivvL/dnZTUhLP+OvBeAZztKYpg/yqSN91Ro=; b=EdmyMECfHDXzW6291SjevFju3t4d3Xe6eswizWxc9QYYCoijWme1QfR89utT21vHPg k88M8b6WW080Gr8XcOBA== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpOej/ewqxKFa1x/mS4TAiahFrERvA==" Received: from nimes.localnet by smtp.strato.de (RZmta 50.5.0 AUTH) with ESMTPSA id N0957e068CEfWqJ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 8 Jul 2024 14:14:41 +0200 (CEST) From: Bruno Haible To: bug-grep@gnu.org Subject: fmbtest unnecessarily skipped on FreeBSD Date: Mon, 08 Jul 2024 14:14:41 +0200 Message-ID: <2220002.NgBsaNRSFp@nimes> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart2814117.BEx9A2HvPv" Content-Transfer-Encoding: 7Bit Received-SPF: none client-ip=81.169.146.161; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This is a multi-part message in MIME format. --nextPart2814117.BEx9A2HvPv Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Building grep-3.11 on FreeBSD 14.0, "make check" reports that the fmbtest test is skipped: fmbtest: skipped test: this system lacks the cs_CZ.UTF-8 locale SKIP: fmbtest But $ locale -a | grep cs_CZ cs_CZ.ISO8859-2 cz_CZ.UTF-8 shows that the system does have this locale. The cause is that this invocation of 'locale' does not work: $ locale -k LC_CTYPE Unknown keyword: `LC_CTYPE` But this one works: $ locale charmap UTF-8 => Patch attached. It fixes the problem: it makes the test PASS. 'locale charmap' is known to work portably for ages; see https://git.savannah.gnu.org/gitweb/?p=libiconv.git;a=tree;f=libcharset/tools;h=f756e65e5ea8fef47afc8bb7ae1094e169012c78;hb=HEAD --nextPart2814117.BEx9A2HvPv Content-Disposition: attachment; filename="0001-tests-Fix-recognition-of-cs_CZ.UTF-8-locale-on-FreeB.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="0001-tests-Fix-recognition-of-cs_CZ.UTF-8-locale-on-FreeB.patch" >From a4501af35dcc7603ee5f500aa87aafe577958010 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 8 Jul 2024 14:06:16 +0200 Subject: [PATCH] tests: Fix recognition of cs_CZ.UTF-8 locale on FreeBSD. * tests/fmbtest: Use 'locale charmap' to determine the locale's encoding. * tests/foad1: Likewise. --- tests/fmbtest | 2 +- tests/foad1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fmbtest b/tests/fmbtest index 38dd49d..f3404fd 100755 --- a/tests/fmbtest +++ b/tests/fmbtest @@ -10,7 +10,7 @@ cz=cs_CZ.UTF-8 # If cs_CZ.UTF-8 locale doesn't work, skip this test. -LC_ALL=$cz locale -k LC_CTYPE 2>/dev/null | grep -q charmap.*UTF-8 \ +test "`LC_ALL=$cz locale charmap 2>/dev/null`" = UTF-8 \ || skip_ this system lacks the $cz locale # If matching is done in single-byte mode, skip this test too diff --git a/tests/foad1 b/tests/foad1 index 3a29f9e..b87e3f3 100755 --- a/tests/foad1 +++ b/tests/foad1 @@ -150,7 +150,7 @@ Exit $failures # The rest of this file is meant to be executed under this locale. LC_ALL=cs_CZ.UTF-8; export LC_ALL # If the UTF-8 locale doesn't work, skip these tests silently. -locale -k LC_CTYPE 2>/dev/null | grep -q "charmap.*UTF-8" || Exit $failures +test "`locale charmap 2>/dev/null`" = UTF-8 || Exit $failures # Test character class erroneously matching a '[' character. grep_test "[/" "" "[[:alpha:]]" -E -- 2.34.1 --nextPart2814117.BEx9A2HvPv-- ------------=_1720529342-26707-1--