unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15608: kbd.scm unicode problem
@ 2013-10-14  8:14 Guy Ze Grant
  2013-10-16 13:32 ` Ludovic Courtès
  2014-06-17 12:20 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Guy Ze Grant @ 2013-10-14  8:14 UTC (permalink / raw)
  To: 15608

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

I was asked to post here, so here it is; Attached is my expression thus
far for kbd, at the patch phase though -- the following issue pops up:
"find-files: ./doc/utf/??????: No such file or directory", along with a
spew of guile barf following (which you can see in the kbd.scm.log file).

Not sure if it's a pertaining to my lack of experience, or if it's
something actually wrong with guix itself, but might as-well through it
off to the experts. :^)


[-- Attachment #2: kbd.scm --]
[-- Type: application/octet-stream, Size: 1718 bytes --]

;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Guy Z. Grant <gzg@riseup.net>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages kbd)
  #:use-module (guix licenses)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (guix packages)
  #:use-module (gnu packages linux))

(define-public kbd
  (package
    (name "kbd")
    (version "1.15.3")
    (source (origin
	     (method url-fetch)
	     (uri (string-append "http://www.kbd-project.org/download/kbd-"
				  version ".tar.gz"))
	     (sha256
	      (base32 "1vcl2791xshjdpi4w88iy87gkb7zv0dbvi83f98v30dvqc9mfl46"))))
    (build-system gnu-build-system)
    (inputs `(("linux-pam" ,linux-pam)))
    (home-page "http://kbd-project.org")
    (synopsis "Keytable files and keyboard utilities")
    (description
     "Kbd contains tools for managing Linux console (Linux console, virtual terminals, 
keyboard, etc.) – mainly, what they do is loading console fonts and keyboard maps.")
    (license gpl2)))



[-- Attachment #3: kbd.scm.log --]
[-- Type: application/octet-stream, Size: 24336 bytes --]

starting phase `patch'
phase `patch' succeeded after 0 seconds
starting phase `patch-source-shebangs'
find-files: ./doc/utf/??????: No such file or directory
Backtrace:
In ice-9/boot-9.scm:
 157: 13 [catch #t #<catch-closure 10bed20> ...]
In unknown file:
   ?: 12 [apply-smob/1 #<catch-closure 10bed20>]
In ice-9/boot-9.scm:
  63: 11 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 10 [eval # #]
In ice-9/boot-9.scm:
2320: 9 [save-module-excursion #<procedure 10edbc0 at ice-9/boot-9.scm:3961:3 ()>]
3966: 8 [#<procedure 10edbc0 at ice-9/boot-9.scm:3961:3 ()>]
1645: 7 [%start-stack load-stack ...]
1650: 6 [#<procedure 10f3db0 ()>]
In unknown file:
   ?: 5 [primitive-load "/nix/store/6gv4ryjd25vkk5p5in5xm5ngphrlbhbk-kbd-1.15.3-guile-builder"]
In ice-9/eval.scm:
 387: 4 [eval # ()]
In srfi/srfi-1.scm:
 830: 3 [every1 #<procedure 12772c0 at /nix/store/5kbwbhzkvndzlx0yldg3532xn7j74cwz-module-import/guix/build/gnu-build-system.scm:364:9 (expr)> ...]
In /nix/store/5kbwbhzkvndzlx0yldg3532xn7j74cwz-module-import/guix/build/gnu-build-system.scm:
 368: 2 [#<procedure 12772c0 at /nix/store/5kbwbhzkvndzlx0yldg3532xn7j74cwz-module-import/guix/build/gnu-build-system.scm:364:9 (expr)> #]
 102: 1 [patch-source-shebangs # ...]
In unknown file:
   ?: 0 [sort # #<procedure string<? (#:optional _ _ . _)>]

ERROR: In procedure sort:
ERROR: In procedure list-copy: Wrong type argument in position 1: ("./config/ylwrap" "./config/install-sh" "./config/depcomp" "./config/config.sub" "./config/config.rpath" "./config/missing" "./config/config.guess" "./config/mkinstalldirs" "./config/compile" "./contrib/splitfont.c" "./contrib/codepage.c" "./contrib/vtrgb.ubuntu" "./contrib/font2psf" "./contrib/showconsolefont" "./contrib/sti.c" "./contrib/fix_bs_and_del" "./contrib/vcstime.c" "./contrib/psf.magic" "./contrib/psfsplit" "./data/consolefonts/cp850-8x16.psfu" "./data/consolefonts/lat5-12.psfu" "./data/consolefonts/t850b.fnt" "./data/consolefonts/lat9-10.psf" "./data/consolefonts/iso01-12x22.psfu" "./data/consolefonts/lat2-12.psfu" "./data/consolefonts/lat9u-14.psfu" "./data/consolefonts/lat1-14.psfu" "./data/consolefonts/cp866-8x16.psf" "./data/consolefonts/lat4-12.psfu" "./data/consolefonts/viscii10-8x16.psfu" "./data/consolefonts/tcvn8x16.psf" "./data/consolefonts/iso03.08" "./data/consolefonts/165.cp" "./data/consolefonts/default8x16.psfu" "./data/consolefonts/gr737b-8x11.psfu" "./data/consolefonts/iso03.14" "./data/consolefonts/sun12x22.psfu" "./data/consolefonts/gr737c-8x8.psfu" "./data/consolefonts/lat4-16+.psfu" "./data/consolefonts/iso04.08" "./data/consolefonts/iso07.16" "./data/consolefonts/iso04.16" "./data/consolefonts/iso01.08" "./data/consolefonts/cyr-sun16.psfu" "./data/consolefonts/gr737c-8x7.psfu" "./data/consolefonts/lat2-14.psfu" "./data/consolefonts/163.cp" "./data/consolefonts/lat9v-14.psfu" "./data/consolefonts/GohaClassic-16.psfu" "./data/consolefonts/README.LatGrkCyr" "./data/consolefonts/iso02.08" "./data/consolefonts/LatGrkCyr-8x16.psfu" "./data/consolefonts/162.cp" "./data/consolefonts/README.12x22" "./data/consolefonts/lat4-10.psfu" "./data/consolefonts/lat2-16.psfu" "./data/consolefonts/lat2a-16.psfu" "./data/consolefonts/README.drdos" "./data/consolefonts/lat7a-14.psfu" "./data/consolefonts/koi8c-8x16" "./data/consolefonts/gr737a-8x8.psfu" "./data/consolefonts/gr737d-8x16.psfu" "./data/consolefonts/README.cybercafe" "./data/consolefonts/iso05.16" "./data/consolefonts/lat5-14.psfu" "./data/consolefonts/gr737c-8x16.psfu" "./data/consolefonts/alt-8x8" "./data/consolefonts/arm8.fnt" "./data/consolefonts/gr737a-9x16.psfu" "./data/consolefonts/README.lat9" "./data/consolefonts/koi8-14.psf" "./data/consolefonts/lat9u-08.psfu" "./data/consolefonts/cp850-8x8.psfu" "./data/consolefonts/koi8r.8x8.psfu" "./data/consolefonts/iso08.16" "./data/consolefonts/gr928-9x16.psfu" "./data/consolefonts/iso07u-16.psfu" "./data/consolefonts/lat4a-12.psfu" "./data/consolefonts/UniCyr_8x8.psf" "./data/consolefonts/lat9u-16.psfu" "./data/consolefonts/Agafari-12.psfu" "./data/consolefonts/cp866-8x14.psf" "./data/consolefonts/drdos8x16.psfu" "./data/consolefonts/cp1250.psfu" "./data/consolefonts/UniCyr_8x14.psf" "./data/consolefonts/iso01.16" "./data/consolefonts/gr737b-9x16-medieval.psfu" "./data/consolefonts/lat4a-16+.psfu" "./data/consolefonts/LatArCyrHeb-16+.psfu" "./data/consolefonts/drdos8x8.psfu" "./data/consolefonts/Agafari-14.psfu" "./data/consolefonts/iso05.08" "./data/consolefonts/alt-8x14" "./data/consolefonts/lat9w-12.psfu" "./data/consolefonts/Cyr_a8x8.psfu" "./data/consolefonts/iso06.14" "./data/consolefonts/lat0-14.psfu" "./data/consolefonts/lat4a-19.psfu" "./data/consolefonts/lat1-12.psfu" "./data/consolefonts/GohaClassic-12.psfu" "./data/consolefonts/lat4a-16.psfu" "./data/consolefonts/koi8u_8x16.psfu" "./data/consolefonts/README.Ethiopic" "./data/consolefonts/lat4-14.psfu" "./data/consolefonts/koi8r-8x16" "./data/consolefonts/lat0-12.psfu" "./data/consolefonts/gr928b-8x14.psfu" "./data/consolefonts/t.fnt" "./data/consolefonts/iso01.14" "./data/consolefonts/cybercafe.fnt" "./data/consolefonts/koi8r-8x14" "./data/consolefonts/lat9v-12.psfu" "./data/consolefonts/lat4a-14.psfu" "./data/consolefonts/koi8u_8x8.psfu" "./data/consolefonts/lat9u-10.psfu" "./data/consolefonts/lat9-08.psf" "./data/consolefonts/gr737a-9x14.psfu" "./data/consolefonts/lat4-16.psfu" "./data/consolefonts/lat2-08.psfu" "./data/consolefonts/164.cp" "./data/consolefonts/cp866-8x8.psf" "./data/consolefonts/LatKaCyrHeb-14.psfu" "./data/consolefonts/Cyr_a8x14.psfu" "./data/consolefonts/Cyr_a8x16.psfu" "./data/consolefonts/Goha-16.psfu" "./data/consolefonts/iso10.08" "./data/consolefonts/cp865-8x16.psfu" "./data/consolefonts/iso03.16" "./data/consolefonts/iso08.08" "./data/consolefonts/LatGrkCyr-12x22.psfu" "./data/consolefonts/lat9-16.psf" "./data/consolefonts/iso02.16" "./data/consolefonts/gr928-9x14.psfu" "./data/consolefonts/README.Lat2-Terminus16" "./data/consolefonts/default8x9.psfu" "./data/consolefonts/README.Greek" "./data/consolefonts/Goha-14.psfu" "./data/consolefonts/aply16.psf" "./data/consolefonts/README.Hebrew" "./data/consolefonts/koi8r-8x8" "./data/consolefonts/cp857.14" "./data/consolefonts/lat5-16.psfu" "./data/consolefonts/gr737c-8x14.psfu" "./data/consolefonts/UniCyr_8x16.psf" "./data/consolefonts/iso09.14" "./data/consolefonts/gr928-8x16-thin.psfu" "./data/consolefonts/greek-polytonic.psfu" "./data/consolefonts/lat9v-10.psfu" "./data/consolefonts/lat9w-10.psfu" "./data/consolefonts/lat4a-10.psfu" "./data/consolefonts/LatArCyrHeb-14.psfu" "./data/consolefonts/lat0-08.psfu" "./data/consolefonts/lat4a-08.psfu" "./data/consolefonts/lat1-10.psfu" "./data/consolefonts/iso04.14" "./data/consolefonts/ruscii_8x16.psfu" "./data/consolefonts/lat4-08.psfu" "./data/consolefonts/README.psfu" "./data/consolefonts/cp857.16" "./data/consolefonts/iso08.14" "./data/consolefonts/lat9-12.psf" "./data/consolefonts/alt-8x16" "./data/consolefonts/lat9w-16.psfu" "./data/consolefonts/iso06.08" "./data/consolefonts/Agafari-16.psfu" "./data/consolefonts/drdos8x6.psfu" "./data/consolefonts/drdos8x14.psfu" "./data/consolefonts/lat9v-16.psfu" "./data/consolefonts/LatArCyrHeb-08.psfu" "./data/consolefonts/altc-8x16" "./data/consolefonts/Goha-12.psfu" "./data/consolefonts/928.cp" "./data/consolefonts/LatArCyrHeb-16.psfu" "./data/consolefonts/iso10.16" "./data/consolefonts/cp857.08" "./data/consolefonts/LatArCyrHeb-19.psfu" "./data/consolefonts/lat9-14.psf" "./data/consolefonts/lat2-10.psfu" "./data/consolefonts/lat9w-08.psfu" "./data/consolefonts/iso07.14" "./data/consolefonts/Lat2-Terminus16.psfu" "./data/consolefonts/iso02-12x22.psfu" "./data/consolefonts/README.Cyrillic" "./data/consolefonts/lat1-08.psfu" "./data/consolefonts/972.cp" "./data/consolefonts/cp850-8x14.psfu" "./data/consolefonts/880.cp" "./data/consolefonts/README.lat7" "./data/consolefonts/lat7-14.psfu" "./data/consolefonts/lat9w-14.psfu" "./data/consolefonts/lat1-16.psfu" "./data/consolefonts/iso09.08" "./data/consolefonts/lat9v-08.psfu" "./data/consolefonts/iso10.14" "./data/consolefonts/lat9u-12.psfu" "./data/consolefonts/README.cp1250" "./data/consolefonts/gr928b-8x16.psfu" "./data/consolefonts/gr928a-8x14.psfu" "./data/consolefonts/iso09.16" "./data/consolefonts/README.lat0" "./data/consolefonts/ERRORS" "./data/consolefonts/lat7a-16.psf" "./data/consolefonts/gr928a-8x16.psfu" "./data/consolefonts/lat0-16.psfu" "./data/consolefonts/lat4-19.psfu" "./data/consolefonts/iso06.16" "./data/consolefonts/lat0-10.psfu" "./data/consolefonts/Mik_8x16" "./data/consolefonts/ruscii_8x8.psfu" "./data/consolefonts/iso02.14" "./data/consolefonts/cp865-8x8.psfu" "./data/consolefonts/GohaClassic-14.psfu" "./data/consolefonts/737.cp" "./data/consolefonts/161.cp" "./data/consolefonts/README.Arabic" "./data/consolefonts/iso05.14" "./data/consolefonts/cp865-8x14.psfu" "./data/consolefonts/koi8u_8x14.psfu" "./data/consolefonts/gr737c-8x6.psfu" "./data/consolefonts/UniCyrExt_8x16.psf" "./data/consoletrans/koi8u2ruscii" "./data/consoletrans/cp861_to_uni.trans" "./data/consoletrans/latin2u.trans" "./data/consoletrans/zero" "./data/consoletrans/trivial" "./data/consoletrans/iso02_to_cp1250.trans" "./data/consoletrans/cp1250_to_uni.trans" "./data/consoletrans/cp855_to_uni.trans" "./data/consoletrans/cp853_to_uni.trans" "./data/consoletrans/cp865_to_uni.trans" "./data/consoletrans/cp864_to_uni.trans" "./data/consoletrans/8859-2_to_uni.trans" "./data/consoletrans/8859-9_to_uni.trans" "./data/consoletrans/8859-10_to_uni.trans" "./data/consoletrans/cp437_to_iso01.trans" "./data/consoletrans/baltic.trans" "./data/consoletrans/8859-4_to_uni.trans" "./data/consoletrans/cp437_to_uni.trans" "./data/consoletrans/cp863_to_uni.trans" "./data/consoletrans/cp852_to_uni.trans" "./data/consoletrans/cp775_to_uni.trans" "./data/consoletrans/vga2iso" "./data/consoletrans/cp1251_to_uni.trans" "./data/consoletrans/viscii1.0_to_viscii1.1.trans" "./data/consoletrans/cp737_to_uni.trans" "./data/consoletrans/null" "./data/consoletrans/viscii1.0_to_tcvn.trans" "./data/consoletrans/8859-13_to_uni.trans" "./data/consoletrans/8859-14_to_uni.trans" "./data/consoletrans/8859-3_to_uni.trans" "./data/consoletrans/koi8-u_to_uni.trans" "./data/consoletrans/cp857_to_uni.trans" "./data/consoletrans/cp860_to_uni.trans" "./data/consoletrans/cp866_to_uni.trans" "./data/consoletrans/utflist" "./data/consoletrans/8859-5_to_uni.trans" "./data/consoletrans/cp850_to_iso01.trans" "./data/consoletrans/8859-7_to_uni.trans" "./data/consoletrans/cp869_to_uni.trans" "./data/consoletrans/koi2alt" "./data/consoletrans/koi8-r_to_uni.trans" "./data/consoletrans/cp874_to_uni.trans" "./data/consoletrans/8859-8_to_uni.trans" "./data/consoletrans/8859-15_to_uni.trans" "./data/consoletrans/cp862_to_uni.trans" "./data/consoletrans/8859-1_to_uni.trans" "./data/consoletrans/cp850_to_uni.trans" "./data/consoletrans/space" "./data/consoletrans/8859-6_to_uni.trans" "./data/keymaps/atari/atari-uk-falcon.map" "./data/keymaps/atari/atari-de.map" "./data/keymaps/atari/atari-se.map" "./data/keymaps/atari/atari-us.map" "./data/keymaps/include/compose.latin3" "./data/keymaps/include/compose.8859_7" "./data/keymaps/include/compose.latin4" "./data/keymaps/include/compose.latin1" "./data/keymaps/include/vim-compose.latin1" "./data/keymaps/include/compose.8859_8" "./data/keymaps/include/compose.latin" "./data/keymaps/include/compose.latin2" "./data/keymaps/mac/include/mac-linux-keys-bare.inc" "./data/keymaps/mac/include/mac-qwertz-layout.inc" "./data/keymaps/mac/include/mac-azerty-layout.inc" "./data/keymaps/mac/include/mac-euro2.map" "./data/keymaps/mac/include/mac-euro.map" "./data/keymaps/mac/include/mac-qwerty-layout.inc" "./data/keymaps/mac/all/mac-de_CH.map" "./data/keymaps/mac/all/mac-es.map" "./data/keymaps/mac/all/mac-dvorak.map" "./data/keymaps/mac/all/mac-dk-latin1.map" "./data/keymaps/mac/all/mac-pt-latin1.map" "./data/keymaps/mac/all/mac-us.map" "./data/keymaps/mac/all/mac-be.map" "./data/keymaps/mac/all/mac-se.map" "./data/keymaps/mac/all/mac-it.map" "./data/keymaps/mac/all/mac-fr.map" "./data/keymaps/mac/all/mac-uk.map" "./data/keymaps/mac/all/mac-pl.map" "./data/keymaps/mac/all/mac-fi-latin1.map" "./data/keymaps/mac/all/mac-fr_CH-latin1.map" "./data/keymaps/mac/all/mac-template.map" "./data/keymaps/mac/all/mac-de-latin1-nodeadkeys.map" "./data/keymaps/mac/all/mac-de-latin1.map" "./data/keymaps/i386/include/compose.inc" "./data/keymaps/i386/include/euro1.map" "./data/keymaps/i386/include/applkey.map" "./data/keymaps/i386/include/linux-with-alt-and-altgr.inc" "./data/keymaps/i386/include/linux-with-modeshift-altgr.inc" "./data/keymaps/i386/include/euro.map" "./data/keymaps/i386/include/azerty-layout.inc" "./data/keymaps/i386/include/linux-keys-bare.inc" "./data/keymaps/i386/include/qwertz-layout.inc" "./data/keymaps/i386/include/keypad.map" "./data/keymaps/i386/include/linux-keys-extd.inc" "./data/keymaps/i386/include/windowkeys.map" "./data/keymaps/i386/include/backspace.map" "./data/keymaps/i386/include/ctrl.map" "./data/keymaps/i386/include/euro1.inc" "./data/keymaps/i386/include/linux-with-two-alt-keys.inc" "./data/keymaps/i386/include/qwerty-layout.inc" "./data/keymaps/i386/include/euro2.map" "./data/keymaps/i386/include/unicode.map" "./data/keymaps/i386/colemak/en-latin9.map" "./data/keymaps/i386/qwerty/mk.map" "./data/keymaps/i386/qwerty/sk-qwerty.map" "./data/keymaps/i386/qwerty/ua-utf.map" "./data/keymaps/i386/qwerty/pc110.map" "./data/keymaps/i386/qwerty/tr_q-latin5.map" "./data/keymaps/i386/qwerty/ru.map" "./data/keymaps/i386/qwerty/es.map" "./data/keymaps/i386/qwerty/kazakh.map" "./data/keymaps/i386/qwerty/ruwin_alt-KOI8-R.map" "./data/keymaps/i386/qwerty/defkeymap_V1.0.map" "./data/keymaps/i386/qwerty/ua-cp1251.map" "./data/keymaps/i386/qwerty/cz-cp1250.map" "./data/keymaps/i386/qwerty/ttwin_ctrl-UTF-8.map" "./data/keymaps/i386/qwerty/it.map" "./data/keymaps/i386/qwerty/trf.map" "./data/keymaps/i386/qwerty/dk-latin1.map" "./data/keymaps/i386/qwerty/sr-cy.map" "./data/keymaps/i386/qwerty/fi.map" "./data/keymaps/i386/qwerty/uk.map" "./data/keymaps/i386/qwerty/pt-latin9.map" "./data/keymaps/i386/qwerty/ua-utf-ws.map" "./data/keymaps/i386/qwerty/es-cp850.map" "./data/keymaps/i386/qwerty/pl3.map" "./data/keymaps/i386/qwerty/ky_alt_sh-UTF-8.map" "./data/keymaps/i386/qwerty/mk0.map" "./data/keymaps/i386/qwerty/no-latin1.map" "./data/keymaps/i386/qwerty/nl2.map" "./data/keymaps/i386/qwerty/kyrgyz.map" "./data/keymaps/i386/qwerty/bg_pho-cp1251.map" "./data/keymaps/i386/qwerty/pl2.map" "./data/keymaps/i386/qwerty/no-latin1.doc" "./data/keymaps/i386/qwerty/ruwin_ct_sh-CP1251.map" "./data/keymaps/i386/qwerty/emacs2.map" "./data/keymaps/i386/qwerty/ru1.map" "./data/keymaps/i386/qwerty/fi-latin1.map" "./data/keymaps/i386/qwerty/hu101.map" "./data/keymaps/i386/qwerty/sk-prog-qwerty.map" "./data/keymaps/i386/qwerty/bg-cp855.map" "./data/keymaps/i386/qwerty/dk.map" "./data/keymaps/i386/qwerty/lt.baltic.map" "./data/keymaps/i386/qwerty/no.map" "./data/keymaps/i386/qwerty/us.map" "./data/keymaps/i386/qwerty/ruwin_ctrl-CP1251.map" "./data/keymaps/i386/qwerty/br-latin1-us.map" "./data/keymaps/i386/qwerty/defkeymap.map" "./data/keymaps/i386/qwerty/il-heb.map" "./data/keymaps/i386/qwerty/ua-ws.map" "./data/keymaps/i386/qwerty/la-latin1.map" "./data/keymaps/i386/qwerty/us-acentos.map" "./data/keymaps/i386/qwerty/pl1.map" "./data/keymaps/i386/qwerty/cz.map" "./data/keymaps/i386/qwerty/jp106.map" "./data/keymaps/i386/qwerty/lt.map" "./data/keymaps/i386/qwerty/ruwin_ctrl-KOI8-R.map" "./data/keymaps/i386/qwerty/br-abnt2.map" "./data/keymaps/i386/qwerty/ruwin_cplk-CP1251.map" "./data/keymaps/i386/qwerty/ruwin_cplk-KOI8-R.map" "./data/keymaps/i386/qwerty/gr.map" "./data/keymaps/i386/qwerty/ruwin_cplk-UTF-8.map" "./data/keymaps/i386/qwerty/bywin-cp1251.map" "./data/keymaps/i386/qwerty/mk-utf.map" "./data/keymaps/i386/qwerty/ttwin_ct_sh-UTF-8.map" "./data/keymaps/i386/qwerty/se-ir209.map" "./data/keymaps/i386/qwerty/ru-yawerty.map" "./data/keymaps/i386/qwerty/gr-pc.map" "./data/keymaps/i386/qwerty/ru4.map" "./data/keymaps/i386/qwerty/cz-lat2.map" "./data/keymaps/i386/qwerty/ruwin_ct_sh-UTF-8.map" "./data/keymaps/i386/qwerty/pl4.map" "./data/keymaps/i386/qwerty/et.map" "./data/keymaps/i386/qwerty/br-abnt.map" "./data/keymaps/i386/qwerty/cf.map" "./data/keymaps/i386/qwerty/cz-lat2-prog.map" "./data/keymaps/i386/qwerty/ru_win.map" "./data/keymaps/i386/qwerty/ttwin_alt-UTF-8.map" "./data/keymaps/i386/qwerty/bg-cp1251.map" "./data/keymaps/i386/qwerty/ruwin_ctrl-UTF-8.map" "./data/keymaps/i386/qwerty/ro_win.map" "./data/keymaps/i386/qwerty/pt-latin1.map" "./data/keymaps/i386/qwerty/mk-cp1251.map" "./data/keymaps/i386/qwerty/nl.map" "./data/keymaps/i386/qwerty/by-cp1251.map" "./data/keymaps/i386/qwerty/ttwin_cplk-UTF-8.map" "./data/keymaps/i386/qwerty/ro_std.map" "./data/keymaps/i386/qwerty/pl.map" "./data/keymaps/i386/qwerty/it2.map" "./data/keymaps/i386/qwerty/bg_bds-utf8.map" "./data/keymaps/i386/qwerty/et-nodeadkeys.map" "./data/keymaps/i386/qwerty/is-latin1.map" "./data/keymaps/i386/qwerty/ru3.map" "./data/keymaps/i386/qwerty/fi-latin9.map" "./data/keymaps/i386/qwerty/se-fi-ir209.map" "./data/keymaps/i386/qwerty/is-latin1-us.map" "./data/keymaps/i386/qwerty/ruwin_alt-UTF-8.map" "./data/keymaps/i386/qwerty/il-phonetic.map" "./data/keymaps/i386/qwerty/ruwin_alt-CP1251.map" "./data/keymaps/i386/qwerty/ruwin_ct_sh-KOI8-R.map" "./data/keymaps/i386/qwerty/trq.map" "./data/keymaps/i386/qwerty/it-ibm.map" "./data/keymaps/i386/qwerty/ru-cp1251.map" "./data/keymaps/i386/qwerty/se-lat6.map" "./data/keymaps/i386/qwerty/bashkir.map" "./data/keymaps/i386/qwerty/bg_bds-cp1251.map" "./data/keymaps/i386/qwerty/il.map" "./data/keymaps/i386/qwerty/ru-ms.map" "./data/keymaps/i386/qwerty/by.map" "./data/keymaps/i386/qwerty/ru2.map" "./data/keymaps/i386/qwerty/ro.map" "./data/keymaps/i386/qwerty/lt.l4.map" "./data/keymaps/i386/qwerty/br-latin1-abnt2.map" "./data/keymaps/i386/qwerty/ua.map" "./data/keymaps/i386/qwerty/emacs.map" "./data/keymaps/i386/qwerty/hypermap.m4" "./data/keymaps/i386/qwerty/bg_pho-utf8.map" "./data/keymaps/i386/qwerty/tralt.map" "./data/keymaps/i386/qwerty/tj_alt-UTF8.map" "./data/keymaps/i386/qwerty/sv-latin1.map" "./data/keymaps/i386/qwerty/se-fi-lat6.map" "./data/keymaps/i386/qwertz/croat.map" "./data/keymaps/i386/qwertz/sg.map" "./data/keymaps/i386/qwertz/hu.map" "./data/keymaps/i386/qwertz/cz-us-qwertz.map" "./data/keymaps/i386/qwertz/sk-qwertz.map" "./data/keymaps/i386/qwertz/fr_CH-latin1.map" "./data/keymaps/i386/qwertz/cz.map" "./data/keymaps/i386/qwertz/fr_CH.map" "./data/keymaps/i386/qwertz/sg-latin1.map" "./data/keymaps/i386/qwertz/sg-latin1-lk450.map" "./data/keymaps/i386/qwertz/de.map" "./data/keymaps/i386/qwertz/de_alt_UTF-8.map" "./data/keymaps/i386/qwertz/de-mobii.map" "./data/keymaps/i386/qwertz/de_CH-latin1.map" "./data/keymaps/i386/qwertz/slovene.map" "./data/keymaps/i386/qwertz/sk-prog-qwertz.map" "./data/keymaps/i386/qwertz/de-latin1-nodeadkeys.map" "./data/keymaps/i386/qwertz/de-latin1.map" "./data/keymaps/i386/fgGIod/trf.map" "./data/keymaps/i386/fgGIod/tr_f-latin5.map" "./data/keymaps/i386/olpc/es.map" "./data/keymaps/i386/olpc/pt.map" "./data/keymaps/i386/azerty/fr-pc.map" "./data/keymaps/i386/azerty/wangbe2.map" "./data/keymaps/i386/azerty/wangbe.map" "./data/keymaps/i386/azerty/fr-latin1.map" "./data/keymaps/i386/azerty/fr.map" "./data/keymaps/i386/azerty/azerty.map" "./data/keymaps/i386/azerty/be-latin1.map" "./data/keymaps/i386/azerty/fr-latin9.map" "./data/keymaps/i386/dvorak/dvorak-r.map" "./data/keymaps/i386/dvorak/dvorak-l.map" "./data/keymaps/i386/dvorak/no.map" "./data/keymaps/i386/dvorak/dvorak-ru.map" "./data/keymaps/i386/dvorak/ANSI-dvorak.map" "./data/keymaps/i386/dvorak/dvorak-fr.map" "./data/keymaps/i386/dvorak/dvorak.map" "./data/keymaps/i386/README" "./data/keymaps/i386/mk_modmap" "./data/keymaps/amiga/amiga-de.map" "./data/keymaps/amiga/amiga-us.map" "./data/keymaps/sun/sunt4-es.map" "./data/keymaps/sun/sundvorak.map" "./data/keymaps/sun/sunt6-uk.map" "./data/keymaps/sun/sunt5-uk.map" "./data/keymaps/sun/sunt5-us-cz.map" "./data/keymaps/sun/sunt5-de-latin1.map" "./data/keymaps/sun/sunt5-cz-us.map" "./data/keymaps/sun/sunt5-fi-latin1.map" "./data/keymaps/sun/sun-pl.map" "./data/keymaps/sun/sun-pl-altgraph.map" "./data/keymaps/sun/sunt5-fr-latin1.map" "./data/keymaps/sun/sunt5-ru.map" "./data/keymaps/sun/sunt4-fi-latin1.map" "./data/keymaps/sun/sunt5-es.map" "./data/keymaps/sun/sunkeymap.map" "./data/keymaps/sun/sunt4-no-latin1.map" "./data/keymaps/README" "./data/unimaps/cp850b.uni" "./data/unimaps/lat1.uni" "./data/unimaps/ethiopic.uni" "./data/unimaps/koi8u.uni" "./data/unimaps/8859-14.a0-ff.uni" "./data/unimaps/empty.uni" "./data/unimaps/lat2u.uni" "./data/unimaps/cp866a.uni" "./data/unimaps/8859-13.a0-ff.uni" "./data/unimaps/cp865.uni" "./data/unimaps/README" "./data/unimaps/ECMA144.uni" "./data/unimaps/cp850z.uni" "./data/unimaps/cybercafe.uni" "./data/unimaps/lat4.uni" "./data/unimaps/iso08.uni" "./data/unimaps/cp737a.uni" "./data/unimaps/cyralt.uni" "./data/unimaps/cp865a.uni" "./data/unimaps/iso01.uni" "./data/unimaps/cp737b.uni" "./data/unimaps/iso07.uni" "./data/unimaps/cp850.uni" "./data/unimaps/iso15.uni" "./data/unimaps/cp437.00-1f.uni" "./data/unimaps/8859-15.a0-ff.uni" "./data/unimaps/8859-1.a0-ff.uni" "./data/unimaps/8859-2.a0-ff.uni" "./data/unimaps/cp737.uni" "./data/unimaps/cp1250.uni" "./data/unimaps/iso02.uni" "./data/unimaps/8859-8.a0-ff.uni" "./data/unimaps/lat2.uni" "./data/unimaps/lat9u.uni" "./data/unimaps/iso06.uni" "./data/unimaps/8859-3.a0-ff.uni" "./data/unimaps/cp737c.uni" "./data/unimaps/8859-6.a0-ff.uni" "./data/unimaps/cp850a.uni" "./data/unimaps/8859-9.a0-ff.uni" "./data/unimaps/iso07u.uni" "./data/unimaps/lat1u.uni" "./data/unimaps/iso10.uni" "./data/unimaps/tcvn.uni" "./data/unimaps/iso04.uni" "./data/unimaps/def.uni" "./data/unimaps/lat9w.uni" "./data/unimaps/8859-5.a0-ff.uni" "./data/unimaps/ascii.20-7f.uni" "./data/unimaps/8859-4.a0-ff.uni" "./data/unimaps/iso03.uni" "./data/unimaps/koi8r.uni" "./data/unimaps/viscii.uni" "./data/unimaps/lat9v.uni" "./data/unimaps/iso09.uni" "./data/unimaps/cp437.uni" "./data/unimaps/armscii8.uni" "./data/unimaps/iso05.uni" "./data/unimaps/ruscii.uni" "./data/unimaps/lat4u.uni" "./data/unimaps/8859-7.a0-ff.uni" "./data/unimaps/8859-10.a0-ff.uni" "./data/unimaps/lat7.uni" "./data/unimaps/cp866.uni" "./data/partialfonts/8859-3.a0-ff.16" "./data/partialfonts/8859-10.a0-ff.08" "./data/partialfonts/cp437.00-1f.14" "./data/partialfonts/cp437.00-1f.16" "./data/partialfonts/8859-8.a0-ff.14" "./data/partialfonts/8859-9.a0-ff.08" "./data/partialfonts/8859-4.a0-ff.08" "./data/partialfonts/8859-1.a0-ff.16" "./data/partialfonts/8859-7.a0-ff.08" "./data/partialfonts/8859-9.a0-ff.16" "./data/partialfonts/8859-6.a0-ff.08" "./data/partialfonts/8859-6.a0-ff.14" "./data/partialfonts/ascii.20-7f.08" "./data/partialfonts/8859-4.a0-ff.16" "./data/partialfonts/8859-3.a0-ff.14" "./data/partialfonts/ascii.20-7f.16" "./data/partialfonts/8859-5.a0-ff.16" "./data/partialfonts/8859-10.a0-ff.16" "./data/partialfonts/8859-7.a0-ff.16" "./data/partialfonts/8859-2.a0-ff.14" "./data/partialfonts/cp437.00-1f.08" "./data/partialfonts/8859-1.a0-ff.08" "./data/partialfonts/8859-6.a0-ff.16" "./data/partialfonts/none.00-17.16" "./data/partialfonts/8859-1.a0-ff.14" "./data/partialfonts/none.00-17.08" "./data/partialfonts/8859-4.a0-ff.14" "./data/partialfonts/8859-9.a0-ff.14" "./data/partialfonts/8859-2.a0-ff.16" "./data/partialfonts/none.00-17.14" "./data/partialfonts/8859-3.a0-ff.08" "./data/partialfonts/8859-2.a0-ff.08" "./data/partialfonts/ascii.20-7f.14" "./data/partialfonts/8859-5.a0-ff.08" "./data/partialfonts/8859-8.a0-ff.08" "./data/partialfonts/8859-8.a0-ff.16" "./data/partialfonts/8859-5.a0-ff.14" "./data/partialfonts/8859-7.a0-ff.14" "./data/partialfonts/8859-10.a0-ff.14" "./data/Makefile.in" "./data/Makefile.am" "./doc/A20/A20.html" "./doc/A20/xfix-286mode2" "./doc/utf/README" "./doc/utf/ethiopic" . #f)
builder for `/nix/store/zv4i2yxcs099ird99dx2pz2204s4gad7-kbd-1.15.3.drv' failed with exit code 1
@ build-failed /nix/store/zv4i2yxcs099ird99dx2pz2204s4gad7-kbd-1.15.3.drv - 1 builder for `/nix/store/zv4i2yxcs099ird99dx2pz2204s4gad7-kbd-1.15.3.drv' failed with exit code 1
guix build: error: build failed: build of `/nix/store/zv4i2yxcs099ird99dx2pz2204s4gad7-kbd-1.15.3.drv' failed

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#15608: kbd.scm unicode problem
  2013-10-14  8:14 bug#15608: kbd.scm unicode problem Guy Ze Grant
@ 2013-10-16 13:32 ` Ludovic Courtès
  2013-12-10 21:59   ` Ludovic Courtès
  2014-06-17 12:20 ` Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2013-10-16 13:32 UTC (permalink / raw)
  To: Guy Ze Grant; +Cc: 15608

"Guy Ze Grant" <gzg@riseup.net> skribis:

> I was asked to post here, so here it is; Attached is my expression thus
> far for kbd, at the patch phase though -- the following issue pops up:
> "find-files: ./doc/utf/??????: No such file or directory", along with a
> spew of guile barf following (which you can see in the kbd.scm.log file).

As we discussed on IRC, the problem is that POSIX considers file names
to be just byte strings, and the encoding is up to the application, and
locale-dependent by default.  In practice people typically use UTF-8
(GLib and friends expect that.)

Here’s the problem and fix:

--8<---------------cut here---------------start------------->8---
$ echo $LANG
en_US.UTF-8

$ ls -a
.  ..  ♪♬

$ guile -c '(use-modules (ice-9 ftw)) (pk (scandir "."))'

;;; (("." ".." "??????"))

$ guile -c '(use-modules (ice-9 ftw)) (setlocale LC_ALL "en_US.utf8") (pk (scandir "."))'

;;; (("." ".." "♪♬"))
--8<---------------cut here---------------end--------------->8---

In the first run Guile uses the “C” locale, so it’s unable to decode “♪♬”.

In the second run it uses a UTF-8 locale, so everything works fine.

Back to kbd: can you add a phase after the ‘unpack’ phase that just
does this?

  (setlocale "LC_ALL" "en_US.utf8")

If that works we can probably make it the default in the ‘core-updates’
branch.

> (define-module (gnu packages kbd)

Since kbd is Linux-specific, could you put it in (gnu packages linux)?

[...]

>  102: 1 [patch-source-shebangs # ...]
> In unknown file:
>    ?: 0 [sort # #<procedure string<? (#:optional _ _ . _)>]
>
> ERROR: In procedure sort:
> ERROR: In procedure list-copy: Wrong type argument in position 1: ("./config/ylwrap" "./config/install-sh" "./config/depcomp" "./config/config.sub" "./config/config.rpath" "./config/missing" "./config/config.guess" "./config/mkinstalldirs" "./config/compile" "./
[...]
> " "./doc/utf/README" "./doc/utf/ethiopic" . #f)

It’s also a bug that ‘find-files’ returns a improper list when
encountering such an issue.  I’ll fit it in ‘core-updates’.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#15608: kbd.scm unicode problem
  2013-10-16 13:32 ` Ludovic Courtès
@ 2013-12-10 21:59   ` Ludovic Courtès
  2014-02-28 11:16     ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2013-12-10 21:59 UTC (permalink / raw)
  To: Guy Ze Grant; +Cc: 15608

ludo@gnu.org (Ludovic Courtès) skribis:

> Back to kbd: can you add a phase after the ‘unpack’ phase that just
> does this?
>
>   (setlocale "LC_ALL" "en_US.utf8")

Did you try this?

What happened to the kdb package definition?

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#15608: kbd.scm unicode problem
  2013-12-10 21:59   ` Ludovic Courtès
@ 2014-02-28 11:16     ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2014-02-28 11:16 UTC (permalink / raw)
  To: Guy Ze Grant; +Cc: 15608

ludo@gnu.org (Ludovic Courtès) skribis:

> ludo@gnu.org (Ludovic Courtès) skribis:
>
>> Back to kbd: can you add a phase after the ‘unpack’ phase that just
>> does this?
>>
>>   (setlocale "LC_ALL" "en_US.utf8")
>
> Did you try this?
>
> What happened to the kdb package definition?

Ping!

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#15608: kbd.scm unicode problem
  2013-10-14  8:14 bug#15608: kbd.scm unicode problem Guy Ze Grant
  2013-10-16 13:32 ` Ludovic Courtès
@ 2014-06-17 12:20 ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2014-06-17 12:20 UTC (permalink / raw)
  To: Guy Ze Grant; +Cc: 15608-done

Two things have happened:

  1. Commit f135276 fixed ‘find-files’ to gracefully handle file names
     that use an unsupported encoding.

  2. I packaged kdb (commit b10e9ff6), which works nicely.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-17 12:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-14  8:14 bug#15608: kbd.scm unicode problem Guy Ze Grant
2013-10-16 13:32 ` Ludovic Courtès
2013-12-10 21:59   ` Ludovic Courtès
2014-02-28 11:16     ` Ludovic Courtès
2014-06-17 12:20 ` Ludovic Courtès

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).