From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id /LyQMdGoVmKijQAAgWs5BA (envelope-from ) for ; Wed, 13 Apr 2022 12:41:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CjY9LtGoVmJ2gQEA9RJhRA (envelope-from ) for ; Wed, 13 Apr 2022 12:41:21 +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 713F6C8CD for ; Wed, 13 Apr 2022 12:41:21 +0200 (CEST) Received: from localhost ([::1]:48508 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neaR6-0008Jt-Hu for larch@yhetil.org; Wed, 13 Apr 2022 06:41:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neaQo-0008JQ-TQ for bug-guix@gnu.org; Wed, 13 Apr 2022 06:41:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neaQo-0000rg-G1 for bug-guix@gnu.org; Wed, 13 Apr 2022 06:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1neaQo-0007rP-Ea for bug-guix@gnu.org; Wed, 13 Apr 2022 06:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54893: guix-daemon, locale, LANG, and unicode in git tag names Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 13 Apr 2022 10:41:02 +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 , Attila Lendvai Received: via spool by 54893-submit@debbugs.gnu.org id=B54893.164984643530168 (code B ref 54893); Wed, 13 Apr 2022 10:41:02 +0000 Received: (at 54893) by debbugs.gnu.org; 13 Apr 2022 10:40:35 +0000 Received: from localhost ([127.0.0.1]:51771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neaQN-0007qW-6M for submit@debbugs.gnu.org; Wed, 13 Apr 2022 06:40:35 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:43971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neaQL-0007qK-9I for 54893@debbugs.gnu.org; Wed, 13 Apr 2022 06:40:34 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4KdfHx4x2cz3xjb; Wed, 13 Apr 2022 12:40:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1649846429; bh=/zAMAbA5kuygYrsv8e2cX+w+5moTzMIZ/zjB/VlP/X0=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=ryRRDySdy2X3h41M3RJJ0rNPP2pjxafSlXqMDTvJpEgIxyPMVAXcEztwrtcWjGiJu 6RpkepXnwIiDd1auXNbMHIpCsaHuV6c5K2w4pHxd4khAAcJ225SUKtLRGoyWIFa9IF UXaWPQIvDAk8JTlJU08uahpjuPsktUQVsia+Ca7E= Message-ID: From: Liliana Marie Prikler Date: Wed, 13 Apr 2022 12:40:29 +0200 In-Reply-To: References: <4sSjKaCcadx8brYQC5HZuP-SyMku3BlXRTZwaCUH13qSv01N33lk9vyUWzzE6R889ZuQRpI_6Pl4Q_51v8jMhUhwh6f9rly5h0EhlUqHG80=@lendvai.name> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 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: 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=1649846481; 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=/zAMAbA5kuygYrsv8e2cX+w+5moTzMIZ/zjB/VlP/X0=; b=iPuRH2OK1I/LeIWUo2kZglgDdIz+iFgVkGjnFTzE0f3VoVBl2ltL3rL+DcESz/LPVHBbYY 5QQxgKfsI1G0XZjWq5DJo54qQfGHwS2qHHqpLhf9iU9tAZ03EYvmYaB5c4q2/wRae9Jblc pT9kBU+vvrnccwuG7btIP8PEFXNO2pbpv7JnWnlVuNAM9zQJh3ZR+mAk6JF0CiB+JeYEqP LhgfOS/Xbsn44Eh0h/v0R0cFJWQa3osYzwahM9HrmFBKxBaA2SbnzI3m8RhydifjFu3Gqk kzIY+hNCOi6W4jIFWBP+UcaXYhF+0qo7cCRPTL83wC85fVCbgN+uSmf6HbwsuQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649846481; a=rsa-sha256; cv=none; b=Xrt4mrboZ7Lg4FRSeIrX6fEMd/pUguO+7Qir7KoiLf2ixpl0SrRe0nGuWHfW322YCFTqvs aFgvujpFweuvpkX/hWPHkKBkyNi47Etwq92biwnQRO4tPt4eaLutD92yecPY9yJkkamv8M SQA+g3ix5fr3E/ZeNS6qxE2YFcIcjvhTp8nzAdCT0+IkvJmuWv9Pow5KYrF3DUYTUNb7Un Kvu6FJgWSMKz14LJVcFtWzgILwnJl7Wjw219e8fP5vzD/vwQ1C3CsPAG6a3N8WINskk1IQ E+k5AENW6yZusNBgbOdiNPx8QMnx3MV6GM63s30e2eV+Yyo4ie1knoqOC316vQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=ryRRDySd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=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: 6.14 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=ryRRDySd; dmarc=fail reason="SPF not aligned (relaxed)" header.from=tugraz.at (policy=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: 713F6C8CD X-Spam-Score: 6.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8O/I05Kido5V Am Mittwoch, dem 13.04.2022 um 10:22 +0200 schrieb Maxime Devos: > [...] > Let's test this (in a new REPL with an UTF-8 locale): > > ((@ (ice-9 iconv) string->bytevector) "é" "ANSI_X3.4-1968") > ice-9/boot-9.scm:1669:16: In procedure raise-exception: > Throw to key `encoding-error' with args `("put-char" "conversion to > port encoding failed" 84 # #\é)'. > > ((@ (ice-9 iconv) string->bytevector) "é" "ANSI_X3.4-1968" 'substitute) > $2 = #vu8(63) > ((@ (rnrs bytevectors) utf8->string) #vu8(63)) > $3 = "?" > > and the other direction: > > ((@ (ice-9 iconv) bytevector->string) #vu8(128) "ANSI_X3.4-1968" > 'substitute) > $5 = "�" ;; why #\� and not #\?? I don't know, I guess Guile is > inconsistent You are first encoding a non-ASCII byte to ASCII, which has no glyph for "I have no idea what this is", so a question mark (#\?) is used. When converting from invalid ASCII to UTF-8 on the other hand, you do have #\� as the WTF character, so that is used instead. This is entirely consistent :) Cheers