From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: How to deal with UTF-8 filenames? Date: Sun, 04 Dec 2016 20:56:07 +0100 Message-ID: <8760mzbh9k.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDctS-00040j-7f for guix-devel@gnu.org; Sun, 04 Dec 2016 14:56:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDctP-0002Hu-4u for guix-devel@gnu.org; Sun, 04 Dec 2016 14:56:14 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34313) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cDctO-0002Hn-W5 for guix-devel@gnu.org; Sun, 04 Dec 2016 14:56:11 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 60B2820776 for ; Sun, 4 Dec 2016 14:56:09 -0500 (EST) Received: from localhost (128.92-221-147.customer.lyse.net [92.221.147.128]) by mail.messagingengine.com (Postfix) with ESMTPA id E531A24E17 for ; Sun, 4 Dec 2016 14:56:08 -0500 (EST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Guix, I'm trying to package the Norwegian Bokm=C3=A5l Aspell dictionary, which contains a 'bokm=C3=A5l.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 # ...] In unknown file: ?: 14 [apply-smob/1 #] 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 #] 4056: 10 [#] 1727: 9 [%start-stack load-stack #] 1732: 8 [#] 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 # ...] In /gnu/store/ciqw5z470c8ihl1kfswj1j3ix6hs092d-module-import/guix/build/gnu= -build-system.scm: 627: 4 [# #] 166: 3 [patch-usr-bin-file #:native-inputs #f ...] In /gnu/store/ciqw5z470c8ihl1kfswj1j3ix6hs092d-module-import/guix/build/uti= ls.scm: 336: 2 [find-files "." "^configure$" ...] In ice-9/ftw.scm: 481: 1 [loop "." "" ...] In unknown file: ?: 0 [readdir #] 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 11= 5))'. builder for `/gnu/store/fnhnrmshycf6qgfv6b9xsil3ppvracad-aspell-dict-nb-0.5= 0.1-0.drv' failed with exit code 1 cannot build derivation `/gnu/store/419306s2mf3300906ikk39vjy0bqqs64-profil= e.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. --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlhEdNcACgkQoqBt8qM6 VPo/nAf/aD/yAeGq1qeiSo3kcMIu2W7mlaJwSOKyMVPKxGpJRqkouvOZDC5DxFqj DX8amBuUC7UEQ/IDfD381dOvp2mfONTCuQfNzQKgrqUhvlgCEtBIwg0S8PSaQzpD qSuXumApX78wEyKjWyiuTcjietuq2mLduq/bfPV6WiL87Q/XwlZuOBsJQhzlZc1u zrXCxR2ZjNHZK0tAPlqFspXqGwCbE9ihQPApgAnj+TCabDYLGTvLuTcPzhQe4KbJ MWivwXFpcpud0MUmQFPiUhYgGoFA+5AHjk3mI82IE6kns+K+5L+1xchgOVsN0I3V WUKNWJKZtwDwtUdE/SNNcad3UWfAoQ== =I6om -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-Norwegian-Bokm-l-Aspell-dictionary.patch Content-Transfer-Encoding: quoted-printable >From 6e6dd7144eecf9c04ba47c4a49207f17181259be Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 4 Dec 2016 19:56:20 +0100 Subject: [PATCH] =3D?UTF-8?q?gnu:=3D20Add=3D20Norwegian=3D20Bokm=3DC3=3DA5l= =3D20Aspell?=3D =3D?UTF-8?q?=3D20dictionary.?=3D MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/aspell.scm (aspell-dict-nb): New variable. --- gnu/packages/aspell.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gnu/packages/aspell.scm b/gnu/packages/aspell.scm index d27e8090b..396e89b2c 100644 --- a/gnu/packages/aspell.scm +++ b/gnu/packages/aspell.scm @@ -4,6 +4,7 @@ ;;; Copyright =C2=A9 2016 John Darrington ;;; Copyright =C2=A9 2016 Efraim Flashner ;;; Copyright =C2=A9 2016 Christopher Andersson +;;; Copyright =C2=A9 2016 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -150,6 +151,14 @@ dictionaries, including personal ones.") (base32 "1gdf7bc1a0kmxsmphdqq8pl01h667mjsj6hihy6kqy14k5qdq69= v"))) =20 +(define-public aspell-dict-nb + (aspell-dictionary "nb" "Norwegian Bokm=C3=A5l" + #:version "0.50.1-0" + #:prefix "aspell-" + #:sha256 + (base32 + "12i2bmgdnlkzfinb20j2a0j4a20q91a9j8qpq5vgabbvc65nwx7= 7"))) + (define-public aspell-dict-nl (aspell-dictionary "nl" "Dutch" #:version "0.50-2" --=20 2.11.0 --=-=-=--