[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16463: Guile derivation fails to build

From: Ludovic Courtès
Subject: bug#16463: Guile derivation fails to build
Date: Fri, 17 Jan 2014 12:08:03 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

reassign 16463 guile 2.0.9
retitle 16463 ‘file-encoding’ truncates encoding name

Sree Harsha Totakura <address@hidden> skribis:

> On 01/17/2014 11:44 AM, Ludovic Courtès wrote:
>> What does this report:
>> ./meta/guile -c '(pk (file-encoding (open-input-file
>> "test-suite/standalone/test-command-line-encoding2")))'
> It reports:
>> bash-4.2$ meta/guile -c '(pk (file-encoding (open-input-file
>> "test-suite/standalone/test-command-line-encoding2")))' ;;;
>> ("ISO-885")

OK, that’s the problem.

I can reproduce it by changing the shebang to this:

--8<---------------cut here---------------start------------->8---
--8<---------------cut here---------------end--------------->8---

This is a bug in Guile’s encoding-cookie scanner: it looks for the
string ‘coding:’ in the first 500 bytes of the file.  Here it does find
it and proceeds to read the next token, except that it stops at 500
bytes, thereby truncating the encoding name.

I’ll look for a fix on the Guile side.

In the meantime, I’m afraid there is no nice way to work around it in
your Guix install.  You could work around it by using a shorter store
directory name, or you could have a local patch in guile.scm that
changes ‘test-command-line-encoding2’ to read ‘coding: utf-8’...


reply via email to

[Prev in Thread] Current Thread [Next in Thread]