From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id +BtwDTMIPGUg2wAAG6o9tA:P1 (envelope-from ) for ; Fri, 27 Oct 2023 20:57:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +BtwDTMIPGUg2wAAG6o9tA (envelope-from ) for ; Fri, 27 Oct 2023 20:57:55 +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 D9FFC31A37 for ; Fri, 27 Oct 2023 20:57:54 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=orWabCsJ; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=ruiSJxhe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698433075; a=rsa-sha256; cv=none; b=gzZiIaHmKKMVSLTL/6kE1F1XHDw6a8NYY1EqqN17qZ0xAsUuOw3e/y2gMurejCGRdgNPjA qf/MyKicolLd4p7jloShZ8HgjEexRf9DV/v+NHV/hvaoeS1DLARk00q+A7mTp62jjuIYpm NNkzpLIAfSXExX+Jmwr2rX9bPs6l5mXtRKZoadZyBYjmuL/0si2IH3HbHPaqCjWRXUGVc0 3Fe6Ov+V+dJsflzyc3aZ/a4tZlXCjVTQWhmJb1Wh+Lyuv5ajfLrXO6EUj5aU+KhZ4i0KBf awYE6JPOO1HOkV/qa7EwgEzHsnCWAPo9R8/c3csfLVGDkcTL/0lk51G/dng4fg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=orWabCsJ; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=ruiSJxhe; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698433075; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=/7wt5FNq4ojdHvIm/f671webQnd368qrM1xfaq1KOAQ=; b=pOPpHAlRAHnyKF9QAOh6g3UIOHWMrVEUd62C/qtH1KceH4L1zHb+qFqAZ69CV103HKS8sc DU3l/droGNhsaaBWeGA7zFQj1R7l0eR3gt7bmdy815c5yOJDU5Zh0GsyUbnqPBcaon7pfV Vn5OUqy25KVf4bSiZvu2W66LegxdRJLmHzAM49tCEAC8VEBdZ7ydgEde207frO4WZ55F6R rEXhpE2hHTeXfbtiAbh85zRRz9iza1qGO8gzM51XX+7gcCqkb60zphdAaiv2S5m/Gepv2d nbqrvwVQRXkwvB0pNxMt2OwhNb/tOlpORokV0ce6Bz+VIKyOlIOp6sK8N26GfQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwS1U-0003WP-Pj; Fri, 27 Oct 2023 14:57:33 -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 1qwS1T-0003WH-TQ for bug-guix@gnu.org; Fri, 27 Oct 2023 14:57:31 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qwS1T-0005UH-Kl for bug-guix@gnu.org; Fri, 27 Oct 2023 14:57:31 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qwS1y-0001CN-OQ for bug-guix@gnu.org; Fri, 27 Oct 2023 14:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66777: program-file silently corrupts expressions with non-ascii characters Resent-From: Tomas Volf Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 27 Oct 2023 18:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66777 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 66777@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16984330654578 (code B ref -1); Fri, 27 Oct 2023 18:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Oct 2023 18:57:45 +0000 Received: from localhost ([127.0.0.1]:37210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwS1g-0001Bm-Rs for submit@debbugs.gnu.org; Fri, 27 Oct 2023 14:57:45 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwS1c-0001BV-4A for submit@debbugs.gnu.org; Fri, 27 Oct 2023 14:57:43 -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 1qwS0x-0003NB-Fi for bug-guix@gnu.org; Fri, 27 Oct 2023 14:57:00 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwS0v-0005Qu-9X for bug-guix@gnu.org; Fri, 27 Oct 2023 14:56:59 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id 0B18727386A; Fri, 27 Oct 2023 18:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1698433012; bh=kSoYxA1PE9GX+hYE0Nn1+qDi3eyT+baPEqE/eDUvyMc=; h=Date:From:To:Subject; b=orWabCsJEjHtRDRwFLEkiyPfrdoFCpKpsFvBM7GCRcChHYM6HhqPzAF3u7z+Q3uwq uiU3oME4MHPCyUyZa0WDCgLrN34KXGQy/5RjcPFeWqi2imoeIuzTdnf8nojWNRRQs/ nluD+05+nyx4V1nXKaqYHEybQla5O6w/DFLGuXzP8pGsfK/sDDCFzBW8X5Vp+nJvWt JlN8wqq+sF4JIOM1hQWrh3sP0VP/ldvuRw/2t78pj2WUBPwC7l36dTV9zZ17Pe6a0K hat3+6q7L/IUmGJNIvla9TaL/327GJsdptL2fXBV8FpenHHPF9GyjfilI6iVcU4lyc SIWJ1FNjLqMzuq+z98GF35vhZ6OfKznKrplVRcVWKOA+IP1IHDI1DqvKTfJ1Ps6EeI U6VzZ8Xd7UdV8192cEBrUZYxHcaCqrNx7B8D1TMqL1KRLa9VQ/bxgLTzA2JehbZqnY 8YYxbu118WbE7Z2rwcPat2aLo8d4Wvs+DmiQUqP01nhs+CiYhaFGa07Ora31RktaYo P46rKS2j3kvdDvej8TfD1YpsECQRIW8AhQgnfZZJn2zOUz+Kl4r1mzKJVAJr9d6OtI N6+D+Njd91/hJsZQmFCLgg5dFG3OkgfxoJStecTPU7cJEL93IOMz/r6XCOyLZZaY0x weDaFoxSa2EP2NCGLw4pvHYc= Received: from localhost (unknown [193.32.127.144]) by wolfsden.cz (Postfix) with ESMTPSA id CEB6E273869 for ; Fri, 27 Oct 2023 18:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1698433010; bh=kSoYxA1PE9GX+hYE0Nn1+qDi3eyT+baPEqE/eDUvyMc=; h=Date:From:To:Subject; b=ruiSJxhekxvCpQRV5/CjId/7zoi8oo0M5xkYy6ZLcCTE5xDHMkov1qvsJM92LAJeM K4w5mSeU/TENYEKPTJ+37AcpILUy+hnWekoONe1gcHvmmqYLD7+395Ij9AbVfjIyYZ z/hGO0pC14UThNU13siftvydl45aPPAZydFkY3CktO9ieRUfTvLrytVMsFSByajWWI d/TCiv59OzC4sLqO40JNNyArjfUJxyxyTV7QtAg9UlMRGAT85NZP75sl7+lD150I0z k4ON78wuot/JUnuoFmHKWJk/lzPBKi3aq4B9Vs1KRNoOn61DSyTJ0K5a/KVZnDlETZ UMbsndY5n6DvEy4BRDefzZkBghHg56SAPP8LWopWMxSEdHwge216udRZJLH39ZoVQm hJP7x9SkYNdZoiBU/wBX8MpHD8TggfuaV6RaQ69fAti7N+gRJO8dNmRYoP/LfUDOBC JH6/UFf+t+HdfhaUDKLRcPwChrT5Dti09QNAVtoIH6b0QjwimpD4e3Q3lIwe2+ZOnv En8v8cnpDFT/wbJkOsrc8UDntBNgKcBWotuk19YNpUFFudsp8Hf4+aQeRgejPNfdse xQXoKmeA74pKjGtBQ68Naeg5T16Cd9+4hLjqNKsKnjfvsEU1ruvXFPmOf0tWAEzgj1 Apv4CBEh8xiaUKxVDoV2Ir+E= Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 8ff27727 for ; Fri, 27 Oct 2023 18:56:50 +0000 (UTC) Date: Fri, 27 Oct 2023 20:56:50 +0200 From: Tomas Volf Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nTKt9M3LkESjXN6B" Content-Disposition: inline Received-SPF: none client-ip=37.205.8.62; envelope-from=ws@wolfsnet.cz; helo=wolfsden.cz X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: D9FFC31A37 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.05 X-Spam-Score: -5.05 X-TUID: PsvkONGoVFjU --nTKt9M3LkESjXN6B Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, when trying to create an executable script using `program-file', I realized= it silently corrupts expressions with non-ascii characters. Minimal reproduct= ion I did put together is: scheme@(guix-user)> ,use (guix) scheme@(guix-user)> ,build (program-file "foo" '(=CE=BB)) $1 =3D "/gnu/store/im07w0ilskfycpkwid3n7s80hdv263cn-foo" scheme@(guix-user)> (call-with-input-file $1 read) ;;; :3:22: warning: possibly unbound variable `$1' $2 =3D (?) Notice that $2 is (?) instead of the expected (=CE=BB). If there is a tech= nical reason why this cannot be handled correctly, it would be great if it at lea= st failed with an error instead of a silent corruption. Have a nice day, Tomas Volf --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --nTKt9M3LkESjXN6B Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmU8B/IACgkQL7/ufbZ/ wandtw//dZIaJF38f9fRD4sRWYESYJxF63f21rIooqfN9Jj5pnuDNBXVHdCaUvqr dfJN5CvqJxp/vSoEpL67CNgogJ2C4FdyvfZ06OhTgMsKpC3YppisEtaQin2laUVB 9jE+gjoHhP/MogK/ijY+y3OEq7hbYbOB3G4zGA9G/mOSC2zdLCa1JK5nR3Xk61vv D55361krDtzqWZIBhXCko3fSYjzdT1uFeUCM+sPmiDQ/T2gJUJIULUVI3c7CoNIb Ttj+E0bqAzKAmroe8rnSx5PW6memBs7KlaLKw8GCPVF16PYV9evhnApP9+UmjoLZ oKS8d4lAPuq9bk5UpFpE/wkdwVNs0m3JlijOOETZfKqxbjBBJm6JPXfFlprMJMhh Q6Lu89RyGUckre/foRerrUJl3hQRqcQ9RCoDRMj1kLkdpGOfP2yoYGL3jOgIHAtp 843rkAGCHQ/Rwia50aJxNtZFuIZ6plNEYz1O2Mfqux/sruIKmqp9WqZGWiR4dhKv 9zoRrwpurPVd7mtgKfU8coS2TJyEOr+CTME9Ay4kzH5EKEh9rWi4Il6jcdFgmMmI sdLjmSqqQo87O6O8cVgcdsEDfMD+xK/ujY/lY4MfeqWMt/xAZPthJaGqRMJKppYh sEw12bnyOO4OO2djyFe0K2ALTNcU9qgUt28EKTH0ILqIqtNMrwI= =BEfE -----END PGP SIGNATURE----- --nTKt9M3LkESjXN6B--