Failing locale

  • Done
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • pjotr.public12
Owner
unassigned
Submitted by
pjotr.public12
Severity
normal
P
P
pjotr.public12 wrote on 6 Mar 2014 11:28
(address . bug-guix@gnu.org)
20140306102810.GA1462@thebird.nl
I am trying to install guix on Debian. I am getting a locale conversion error:

make
/usr/bin/guile --no-auto-compile -c \
"(use-modules (rnrs io ports)) \
(call-with-output-file \"nix/libstore/schema.sql.hh\" \
(lambda (out) \
(call-with-input-file \"nix/libstore/schema.sql\" \
(lambda (in) \
(write (get-string-all in) out)))))"
Backtrace:
In ice-9/boot-9.scm:
149: 2 [catch #t #<catch-closure b9ca00> ...]
157: 1 [#<procedure b380f0 ()>]
In unknown file:
?: 0 [catch-closure]

ERROR: In procedure catch-closure:
ERROR: Throw to key `decoding-error' with args `("scm_from_stringn" "input locale conversion error" 22 #vu8(40 117 115 101 45 109 111 100 117 108 101 115 32 40 114 110 114 115 32 105 111 32 112 111 114 116 115 41 41 9 9 9 32 32 32 40 99 97 108 108 45 119 105 116 104 45 111 117 116 112 117 116 45 102 105 108 101 32 34 110 105 120 47 108 105 98 115 116 111 114 101 47 115 99 104 101 109 97 46 115 113 108 46 104 104 34 9 9 9 32 32 32 32 32 40 108 97 109 98 100 97 32 40 111 117 116 41 9 9 9 9 9 32 32 32 32 32 32 32 40 99 97 108 108 45 119 105 116 104 45 105 110 112 117 116 45 102 105 108 101 32 34 110 105 120 47 108 105 98 115 116 111 114 101 47 115 99 104 101 109 97 46 115 113 108 34 9 9 9 32 32 32 32 32 32 32 32 32 40 108 97 109 98 100 97 32 40 105 110 41 9 9 9 9 9 32 32 32 32 32 32 32 32 32 32 32 40 119 114 105 116 101 32 40 103 101 116 45 115 116 114 105 110 103 45 97 108 108 32 105 110 41 32 111 117 116 41 41 41 41 41))'.

The locale says

LANG=en_GB
LANGUAGE=
LC_CTYPE="en_GB"
LC_NUMERIC="en_GB"
LC_TIME="en_GB"
LC_COLLATE="en_GB"
LC_MONETARY="en_GB"
LC_MESSAGES="en_GB"
LC_PAPER="en_GB"
LC_NAME="en_GB"
LC_ADDRESS="en_GB"
LC_TELEPHONE="en_GB"
LC_MEASUREMENT="en_GB"
LC_IDENTIFICATION="en_GB"
LC_ALL=en_GB

Any idea?

Pj.
L
L
Ludovic Courtès wrote on 6 Mar 2014 23:45
(address . pjotr.public12@thebird.nl)(address . 16952-done@debbugs.gnu.org)
87pplzkkte.fsf@gnu.org
pjotr.public12@thebird.nl skribis:

Toggle quote (24 lines)
> I am trying to install guix on Debian. I am getting a locale conversion error:
>
> make
> /usr/bin/guile --no-auto-compile -c \
> "(use-modules (rnrs io ports)) \
> (call-with-output-file \"nix/libstore/schema.sql.hh\" \
> (lambda (out) \
> (call-with-input-file \"nix/libstore/schema.sql\" \
> (lambda (in) \
> (write (get-string-all in) out)))))"
> Backtrace:
> In ice-9/boot-9.scm:
> 149: 2 [catch #t #<catch-closure b9ca00> ...]
> 157: 1 [#<procedure b380f0 ()>]
> In unknown file:
> ?: 0 [catch-closure]
>
> ERROR: In procedure catch-closure:
> ERROR: Throw to key `decoding-error' with args `("scm_from_stringn" "input locale conversion error" 22 #vu8(40 117 115 101 45 109 111 100 117 108 101 115 32 40 114 110 114 115 32 105 111 32 112 111 114 116 115 41 41 9 9 9 32 32 32 40 99 97 108 108 45 119 105 116 104 45 111 117 116 112 117 116 45 102 105 108 101 32 34 110 105 120 47 108 105 98 115 116 111 114 101 47 115 99 104 101 109 97 46 115 113 108 46 104 104 34 9 9 9 32 32 32 32 32 40 108 97 109 98 100 97 32 40 111 117 116 41 9 9 9 9 9 32 32 32 32 32 32 32 40 99 97 108 108 45 119 105 116 104 45 105 110 112 117 116 45 102 105 108 101 32 34 110 105 120 47 108 105 98 115 116 111 114 101 47 115 99 104 101 109 97 46 115 113 108 34 9 9 9 32 32 32 32 32 32 32 32 32 40 108 97 109 98 100 97 32 40 105 110 41 9 9 9 9 9 32 32 32 32 32 32 32 32 32 32 32 40 119 114 105 116 101 32 40 103 101 116 45 115 116 114 105 110 103 45 97 108 108 32 105 110 41 32 111 117 116 41 41 41 41 41))'.
>
> The locale says
>
> LANG=en_GB

I think this is an instance of http://bugs.gnu.org/10742.

You can work around it either by upgrading Guile, or by using a locale
name that specifies its encoding, such as ‘en_GB.UTF-8’.

Can you confirm?

(I’m closing the bug, but do reopen it if I got it wrong.)

Thanks,
Ludo’.
Closed
?