GNU bug report logs - #66777
program-file silently corrupts expressions with non-ascii characters

Previous Next

Package: guix;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Fri, 27 Oct 2023 18:58:02 UTC

Severity: normal

To reply to this bug, email your comments to 66777 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#66777; Package guix. (Fri, 27 Oct 2023 18:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tomas Volf <wolf <at> wolfsden.cz>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 27 Oct 2023 18:58:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tomas Volf <wolf <at> wolfsden.cz>
To: bug-guix <at> gnu.org
Subject: program-file silently corrupts expressions with non-ascii characters
Date: Fri, 27 Oct 2023 20:56:50 +0200
[Message part 1 (text/plain, inline)]
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.
[signature.asc (application/pgp-signature, inline)]

Changed bug submitter to 'Tomas Volf <~@wolfsden.cz>' from 'Tomas Volf <wolf <at> wolfsden.cz>' Request was from Tomas Volf <~@wolfsden.cz> to control <at> debbugs.gnu.org. (Tue, 09 Jan 2024 16:10:01 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 157 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.