From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CAPTIYCfXmLy6AAAbAwnHQ (envelope-from ) for ; Tue, 19 Apr 2022 13:39:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YAQHIYCfXmKfCgAAG6o9tA (envelope-from ) for ; Tue, 19 Apr 2022 13:39:44 +0200 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 3562C2F500 for ; Tue, 19 Apr 2022 13:39:42 +0200 (CEST) Received: from localhost ([::1]:40734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngmCr-0000ng-2x for larch@yhetil.org; Tue, 19 Apr 2022 07:39:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngmCE-0000m3-0r for bug-guix@gnu.org; Tue, 19 Apr 2022 07:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngmCD-0006cX-OQ for bug-guix@gnu.org; Tue, 19 Apr 2022 07:39:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ngmCD-0004CS-Ka for bug-guix@gnu.org; Tue, 19 Apr 2022 07:39:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54893: guix-daemon, locale, LANG, and unicode in git tag names Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 19 Apr 2022 11:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54893 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxime Devos Received: via spool by 54893-submit@debbugs.gnu.org id=B54893.165036832816124 (code B ref 54893); Tue, 19 Apr 2022 11:39:01 +0000 Received: (at 54893) by debbugs.gnu.org; 19 Apr 2022 11:38:48 +0000 Received: from localhost ([127.0.0.1]:41838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngmC0-0004C0-1h for submit@debbugs.gnu.org; Tue, 19 Apr 2022 07:38:48 -0400 Received: from mail-4022.proton.ch ([185.70.40.22]:41051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ngmBr-0004Bf-BQ for 54893@debbugs.gnu.org; Tue, 19 Apr 2022 07:38:47 -0400 Date: Tue, 19 Apr 2022 11:38:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1650368312; bh=iUGOW/vBpxqUqLUEvIUG1PACxkB59OfPzKh3T7Ml3b4=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=PGaG1qJajMGTN2BUjBJgDGK9M7xZCQHWC9/ZH6hykLVTUe6mlgs+7jUgKk315yBO1 OqQ8Yiww1RR8qm+3YFgJkhLOg562m/xcjJXBLhvSvrDLDuI6EPf5PEtitn1Xx99Khr oTOWvPz6S9tk9Mbup/ABcAKlv5PqWXfg0qPxBb9dQ74qXJ45RF7xtTVMSWlitL57rJ RC1lUvvLZcZT97HZIv8PE4JldJeM/G4Dt9R9GZv/YoQ1YywJkztObwPhtd5V3LiLN/ k0vvbdT2oI/hpWzTEBW5bnwUMjjG/cBhLITCNe4jceWnN+XGXnmiu2r9ROn+9Mo1Jr QORq+95HN5NlA== From: Attila Lendvai Message-ID: In-Reply-To: References: <4sSjKaCcadx8brYQC5HZuP-SyMku3BlXRTZwaCUH13qSv01N33lk9vyUWzzE6R889ZuQRpI_6Pl4Q_51v8jMhUhwh6f9rly5h0EhlUqHG80=@lendvai.name> <0ce6f8b91cdd2979ec7dc74fc8e4eef68d2c7e42.camel@telenet.be> Feedback-ID: 28384833:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Reply-To: Attila Lendvai Cc: 54893@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650368384; h=from:from:sender:sender:reply-to: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=iUGOW/vBpxqUqLUEvIUG1PACxkB59OfPzKh3T7Ml3b4=; b=r6gFksiGO2w8lc75K0eBS27RWfiwS0NXlc7yrHDnSxOY9ycVR6Ld/yxP9NaLaVtwOjd4R9 OUEvUEXp+l27MHXHCyuiuIzeW9G9sJfUBzfovEVMOFPpkjuwiXXyEdzMBnOONgNLx+TqX0 BGu88D/VBH2fs8BwXJFQj2Cxih3ijNtarQ+SEBHMmxJ8kY5/+1+g3Q8o0Swmcot9KbdU9p azWGbspC5kOOMH6qNWNEUX9N3bliopKeyEs5nn/ra3sfRXlS02g6C9r7iQ4Z3OhSUY2ton z+/I+R/YbVzBeAljcBqUuH3un2Wp23oZW10m6ymCpmSaVeuGZC8sxMbLpsFXgw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650368384; a=rsa-sha256; cv=none; b=Top1u431nL2nCMu6H49DS0DTBgK/ebzx8zdD5ZkjDsoOpcLdEDq1Wwj9vZmKtq1L080RVY OLZnlWEzbkLCOCjNCO8bOzXnMib64VwlkT9mM1c3KzNuDJKIZIvMyCMx3Djh7hj+IB4bbQ IJwziPo4bUs5x7HZd3jaAjFLKl6/HzpeE2mto/ZLgjJOc1i9dO+sBhT/j40OWY9pMqQonh sehuJ+T1JJtdETnQM9r6pNcwU9bsjcJ5vlwtmfXyMgLb8H4zLs+IPSXqvE7T3nvzoDxAzN /NowOJ4Ir/toML+zPAwCalkw0eMDxfUFt615kDjnY8KwL6GGvS8qzOdVMpJ5hA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail3 header.b=PGaG1qJa; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lendvai.name header.s=protonmail3 header.b=PGaG1qJa; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 3562C2F500 X-Spam-Score: 0.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: WE3vw0rs5Ugd > thank you, this works indeed as a band aid: > > (setenv "GUIX_LOCPATH" #+(file-append glibc-locales "/lib/locale")) > (setlocale LC_ALL "en_US.utf8") i spoke too early. this works in a git checkout of guix, but it fails to compile when i try to guix pull it. even if i declare the dependency like this: #:autoload (gnu packages base) (glibc-locales) IIUC, this is due to a circular dependency: glibc-locales (and its variants) depend on git-fetch, therefore i cannot refer to them from the implementation of git-fetch. i tried to set the locale to "C" or "POSIX", but it results in ASCII encodi= ng. i tried to set the locale to "en_US.iso-8859-1", hoping that it's available, but it isn't. all that is needed here is an encoding that is idempotent wrt a cycle through bytes->string, string->bytes. i think the iso-8859-n encodings are like that. to verify that hypothesis: $ mkdir -p /tmp/delme/v=C2=BD.2.0 $ LANG=3DC guix repl scheme@(guix-user)> (use-modules (guix build utils)) scheme@(guix-user)> (delete-file-recursively "/tmp/delme") warning: failed to delete /tmp/delme/v??.2.0: No such file or directory warning: failed to delete /tmp/delme: Directory not empty $1 =3D #t $2 =3D # scheme@(guix-user)> $ LANG=3Den_US.iso-8859-1 guix repl scheme@(guix-user)> (use-modules (guix build utils)) scheme@(guix-user)> (delete-file-recursively "/tmp/delme") $1 =3D # scheme@(guix-user)> so, is such an idempotent locale available/embedded in glibc without any ex= ternal dependencies? searching the web suggests that there isn't. if not, then what would be a bird's eye view plan to make one available for git-fetch? should we create a new, ASCII-only git-fetch variant used in the bootstrap = process? -- =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CThe world is changed by your example, not by your opinion.= =E2=80=9D =09=E2=80=94 Paulo Coelho (1947=E2=80=93)