guix-devel
[Top][All Lists]
Advanced

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

How to deal with UTF-8 filenames?


From: Marius Bakke
Subject: How to deal with UTF-8 filenames?
Date: Sun, 04 Dec 2016 20:56:07 +0100
User-agent: Notmuch/0.23.3 (https://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu)

Hello Guix,

I'm trying to package the Norwegian Bokmål Aspell dictionary, which
contains a 'bokmål.alias' in the source archive. This causes 'readdir'
to throw a decoding-error. Here is the backtrace:

phase `unpack' succeeded after 0.1 seconds
starting phase `patch-usr-bin-file'
Backtrace:
In ice-9/boot-9.scm:
 160: 15 [catch #t #<catch-closure 8cac40> ...]
In unknown file:
   ?: 14 [apply-smob/1 #<catch-closure 8cac40>]
In ice-9/boot-9.scm:
  66: 13 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 12 [eval # #]
In ice-9/boot-9.scm:
2404: 11 [save-module-excursion #<procedure 8eb840 at ice-9/boot-9.scm:4051:3 
()>]
4056: 10 [#<procedure 8eb840 at ice-9/boot-9.scm:4051:3 ()>]
1727: 9 [%start-stack load-stack #<procedure 8fdcc0 at ice-9/boot-9.scm:4047:10 
()>]
1732: 8 [#<procedure 8fe990 ()>]
In unknown file:
   ?: 7 [primitive-load 
"/gnu/store/2f1ikq718l8q0lz7y771m503vdwjf2q9-aspell-dict-nb-0.50.1-0-guile-builder"]
In ice-9/eval.scm:
 387: 6 [eval # ()]
In srfi/srfi-1.scm:
 827: 5 [every1 #<procedure d661e0 at 
/gnu/store/ciqw5z470c8ihl1kfswj1j3ix6hs092d-module-import/guix/build/gnu-build-system.scm:623:9
 (expr)> ...]
In 
/gnu/store/ciqw5z470c8ihl1kfswj1j3ix6hs092d-module-import/guix/build/gnu-build-system.scm:
 627: 4 [#<procedure d661e0 at 
/gnu/store/ciqw5z470c8ihl1kfswj1j3ix6hs092d-module-import/guix/build/gnu-build-system.scm:623:9
 (expr)> #]
 166: 3 [patch-usr-bin-file #:native-inputs #f ...]
In 
/gnu/store/ciqw5z470c8ihl1kfswj1j3ix6hs092d-module-import/guix/build/utils.scm:
 336: 2 [find-files "." "^configure$" ...]
In ice-9/ftw.scm:
 481: 1 [loop "." "" ...]
In unknown file:
   ?: 0 [readdir #<directory stream e34a60>]

ERROR: In procedure readdir:
ERROR: Throw to key `decoding-error' with args `("scm_from_stringn" "input 
locale conversion error" 84 #vu8(98 111 107 109 229 108 46 97 108 105 97 115))'.
builder for 
`/gnu/store/fnhnrmshycf6qgfv6b9xsil3ppvracad-aspell-dict-nb-0.50.1-0.drv' 
failed with exit code 1
cannot build derivation 
`/gnu/store/419306s2mf3300906ikk39vjy0bqqs64-profile.drv': 1 dependencies 
couldn't be built

This also happens in the 'patch-source-shebangs' phase which is
necessary for the 'configure' script to work.

Any suggestions for how to deal with this?

Patch attached.

Attachment: signature.asc
Description: PGP signature

Attachment: 0001-gnu-Add-Norwegian-Bokm-l-Aspell-dictionary.patch
Description: Text Data


reply via email to

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