From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iCIvFy9EkmDZRQEAgWs5BA (envelope-from ) for ; Wed, 05 May 2021 09:07:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 5jHTEi9EkmBJXwAAB5/wlQ (envelope-from ) for ; Wed, 05 May 2021 07:07:27 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D8462219E5 for ; Wed, 5 May 2021 09:07:26 +0200 (CEST) Received: from localhost ([::1]:54056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leBcz-0006hT-KF for larch@yhetil.org; Wed, 05 May 2021 03:07:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leBag-0004Pe-53 for bug-guix@gnu.org; Wed, 05 May 2021 03:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46586) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leBaf-0008MN-Rz for bug-guix@gnu.org; Wed, 05 May 2021 03:05:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leBaf-0004OK-Nh for bug-guix@gnu.org; Wed, 05 May 2021 03:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#39970: guix commands broken on Azerbaijani 'az_AZ' and Turkish 'tr_TR' locales Resent-From: Taylan Kammer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 05 May 2021 07:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39970 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "pelzflorian (Florian Pelz)" , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 39970-submit@debbugs.gnu.org id=B39970.162019828316870 (code B ref 39970); Wed, 05 May 2021 07:05:01 +0000 Received: (at 39970) by debbugs.gnu.org; 5 May 2021 07:04:43 +0000 Received: from localhost ([127.0.0.1]:58131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leBaM-0004O2-Np for submit@debbugs.gnu.org; Wed, 05 May 2021 03:04:42 -0400 Received: from mail-ed1-f51.google.com ([209.85.208.51]:35389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leBaJ-0004Nw-Hp for 39970@debbugs.gnu.org; Wed, 05 May 2021 03:04:41 -0400 Received: by mail-ed1-f51.google.com with SMTP id di13so705123edb.2 for <39970@debbugs.gnu.org>; Wed, 05 May 2021 00:04:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=YIgexaiMINSlMsO56JoCOrDkjonXjwvuxJe2hBC3oes=; b=Xe87cw8LiT/n2apPx65n0ZXxdOCXrDq3jduvg0So++5C0tlodORuIqdNkEFBjCLFvG Ba6daTARJL4Gx5oDnBzAhCbHtNPAXJBsd0iBihngjrkMc8eaJjXfQdTjt3aQG9HjbK7r Z6jJO+yKyweiPGvi1ZdgLuiHkP0pNw6tLI2OEPyXotiTmiNLmOL6Sl3u9T71L6yyd4hl 5osvEB18hmw3PBGFi1uYEWwYkk27PT1dZSXVQq0vp6xELuqCn92nQbbEzl1Ch1tbP5UL YVsxYjNVincQKALidqicGRN5+e2QsmWGZMcMfD+QIAUOaTaBRa33iKOlwCzJTtKJ2rr3 6OWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=YIgexaiMINSlMsO56JoCOrDkjonXjwvuxJe2hBC3oes=; b=rrDTYI4f1lAxoFRsukphhER064NNtlIyhXNL40ggj0JegMeelufv+Mc2jWhEi7/qpb MOfFMftwWK5rCl6UDLmj5723mt55zeao2xDKFuSsSvH3ncITDaMmSCCdrwPZUWpmq9z8 OTZUKQo+3X1vCj+SDeowXIlwRg9xK0wy1ed6kHL1WjfD1YMBR8MbKfrFhXg755uUReRJ rVtyKg7IOqqVd9kfo8niv+daDTpB7sUIYUbUloiIF2KOJJF44/QA8f4wc/TOraX+6aYk 6dSC4C0ATIdJgIzK1dM7NQFWPcTWLNhEhVUQt+AThe34euPP8rzGqMzbkukJfMQEsR40 r13A== X-Gm-Message-State: AOAM533bgYXhQ/cIbzaPSdCsSiZ1uZFDXqK+QOqDvl1PW9DVV94IrFFl NmByWJZJMDyQolbxRKqDHbfiiv99QjN84Q== X-Google-Smtp-Source: ABdhPJwRs0OyADg8AJYKFZsNrHOiOb/piZfFIk1/O1z3iVGvTeqz5bHUaIr3mxwr3i/pnEhkZV+3Jg== X-Received: by 2002:a05:6402:3090:: with SMTP id de16mr30587624edb.177.1620198273670; Wed, 05 May 2021 00:04:33 -0700 (PDT) Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id r17sm3560987edo.48.2021.05.05.00.04.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 May 2021 00:04:33 -0700 (PDT) References: <20200307120052.ocwzphlvemvmb2ts@pelzflorian.localdomain> <20200307152003.myj7jkjthokbmark@pelzflorian.localdomain> <20200308070804.ylpb5yrwpgbc3p3w@pelzflorian.localdomain> <8736ah1mxb.fsf@gnu.org> <20200312110206.2hsinzejnmcefmot@pelzflorian.localdomain> From: Taylan Kammer Message-ID: Date: Wed, 5 May 2021 09:04:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20200312110206.2hsinzejnmcefmot@pelzflorian.localdomain> Content-Type: text/plain; charset=UTF-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 39970@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620198447; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=YIgexaiMINSlMsO56JoCOrDkjonXjwvuxJe2hBC3oes=; b=OHtk2KSZp7jDGdY3mjB8+6BetpooCtfUOxevG/O28XbxRKi9h9cHc4hn80VVPkHsg+g0/P 3B+7+Kn7uisi8SCySNtLQTj8XZQ9MlAHGoIXJ8U3FquaRn27Ejb1j6gB3vg4v/78PSBcpA bwjjQC3QrQyyf4ZYMFTU2UA8fdp1ohSBU8V80H2bKtpcPhYDin7Rce4RiDEyA5b+wBByfa xFxhN5h69dBf2NDUp54+7rQ9z7stnzlCA91lUHK9Ic41PAkIyRtuvGus1fxcKitq/svdec QM2vRuNXJtpil6jgvTfsOymD3h/i15fn3xDwIMZt9RqCiA0HRe1PIglmhRVUHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620198447; a=rsa-sha256; cv=none; b=pi7NmGN5OX1UYOrIxoVyXo17PMyQkYMv//4Ykql47+E1ydMdf955gYxZ5mCegVGPXPKcWz Bka4BwO0ZANlqsHZrF4sxK4zZz8OZ77cVl8HPBYdDzlA7ToHrTq89fUHKDwx4z3OiRyAnT Uqu18wkIXFZJ3t3Y3NFsc1Q1sqsLmlyLjXaDjEHatgycHq5d2ncFTcmKe2XZE7eZMNtTdG FXxyugUPXT5NLn7T1ioNoIUzmMGTUDMWaptx6W6rS4A2ZqzXcoO+eR2GyzD9Yf4tnk0/96 34c22pb9P5IG/wkerq9N647sK23NLhOinScpZoo55oMDdTeO8KgEUJ8WoQuWOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Xe87cw8L; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Xe87cw8L; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: D8462219E5 X-Spam-Score: -1.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: AZBJQSx60KCE On 12.03.2020 12:02, pelzflorian (Florian Pelz) wrote: > > Guile’s behavior that i is not among [a-z] has been confirmed as > unexpected by a natively Turkish friend of mine. It is different from > the behavior of current glibc: > > florian@florianmacbook ~$ cat iyiyim.c > #include > #include > #include > #define STR "iyiyım" > int main (int argc, > char** argv) > { > regex_t only_letters; > int r = regcomp (&only_letters, "[a-z]+", REG_EXTENDED); > if (r != 0) > printf ("This error does not happen.\n"); > r = regexec (&only_letters, STR, 1, malloc (sizeof (regmatch_t)), 0); > if (r == 0) > printf ("The string " STR " matched!\n"); > else > printf ("No match for " STR ".\n"); > } > florian@florianmacbook ~$ gcc -o iyiyim iyiyim.c > florian@florianmacbook ~$ LANG=tr_TR.utf8 ./iyiyim > The string iyiyım matched! > > Apparently Guile uses a bundled regular expression library rather than > glibc. I can try making Guile use a newer GNUlib for its regular > expressions, maybe that helps. Shall I file a separate bug for Guile? > Also native Turkish speaker here, and yeah that seems like a clear bug. By the way, Turkish doesn't have q, w, or x. So if [a-z] is interpreted by locale, it would fail to match those letters. I suppose that doesn't matter for the patch you guys used but it might have been part of the original problem. The dotless lowercase i / dotted uppercase I mostly bites programmers in case conversion. The uppercase of i is İ and the lowercase of I is ı. There was even an exploit in GitHub related to this: https://eng.getwisdom.io/hacking-github-with-unicode-dotless-i/ - Taylan