From: Tomas Volf <wolf@wolfsden.cz>
To: 66777@debbugs.gnu.org
Subject: bug#66777: program-file silently corrupts expressions with non-ascii characters
Date: Fri, 27 Oct 2023 20:56:50 +0200 [thread overview]
Message-ID: <ZTwH8tvZaM835JM8@ws> (raw)
[-- Attachment #1: Type: text/plain, Size: 848 bytes --]
Hello,
when trying to create an executable script using `program-file', I realized it
silently corrupts expressions with non-ascii characters. Minimal reproduction I
did put together is:
scheme@(guix-user)> ,use (guix)
scheme@(guix-user)> ,build (program-file "foo" '(λ))
$1 = "/gnu/store/im07w0ilskfycpkwid3n7s80hdv263cn-foo"
scheme@(guix-user)> (call-with-input-file $1 read)
;;; <stdin>:3:22: warning: possibly unbound variable `$1'
$2 = (?)
Notice that $2 is (?) instead of the expected (λ). If there is a technical
reason why this cannot be handled correctly, it would be great if it at least
failed with an error instead of a silent corruption.
Have a nice day,
Tomas Volf
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
reply other threads:[~2023-10-27 18:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZTwH8tvZaM835JM8@ws \
--to=wolf@wolfsden.cz \
--cc=66777@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).