首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu12.04上的guile给出了“输入区域转换错误”

Ubuntu12.04上的guile给出了“输入区域转换错误”
EN

Stack Overflow用户
提问于 2014-01-08 00:21:02
回答 2查看 329关注 0票数 0

运行guile (在交互模式下或使用脚本)将在我的ubuntu12.04上产生这个错误:-

代码语言:javascript
复制
guile test.scm
Backtrace:
In ice-9/boot-9.scm:
 149: 2 [catch #t #<catch-closure 9ec72f0> ...]
 157: 1 [#<procedure 9e8f8c0 ()>]
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(116 101 115 116 46 115 99 109))'.

关于如何调试这一点的任何输入都会有所帮助。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-01-25 00:03:48

简单回答:如果你想使用印度英语,你必须使用en_IN.UTF-8作为你的编码。如果您还没有运行sudo locale-gen en_IN,请不要忘记。

很长的答案:我终于开始安装Ubuntu12.04.3,这样我就可以测试这个了。当我测试它时,区域设置似乎必须包括编码,否则它会失败:

代码语言:javascript
复制
$ for LANG in en_{IN,US}{,.UTF-8,.ISO-8859-1}; do echo LANG=$LANG; guile </dev/null; done
LANG=en_IN
Backtrace:
In ice-9/boot-9.scm:
 149: 2 [catch #t #<catch-closure 224b4e0> ...]
 157: 1 [#<procedure 21e90f0 ()>]
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(103 117 105 108 101))'.
LANG=en_IN.UTF-8
GNU Guile 2.0.5-deb+1-1
Copyright (C) 1995-2012 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.

LANG=en_IN.ISO-8859-1
warning: failed to install locale: Invalid argument
GNU Guile 2.0.5-deb+1-1
Copyright (C) 1995-2012 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.

LANG=en_US
Backtrace:
In ice-9/boot-9.scm:
 149: 2 [catch #t #<catch-closure 1def1c0> ...]
 157: 1 [#<procedure 1d8d0f0 ()>]
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(103 117 105 108 101))'.
LANG=en_US.UTF-8
GNU Guile 2.0.5-deb+1-1
Copyright (C) 1995-2012 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.

LANG=en_US.ISO-8859-1
warning: failed to install locale: Invalid argument
GNU Guile 2.0.5-deb+1-1
Copyright (C) 1995-2012 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
票数 1
EN

Stack Overflow用户

发布于 2014-01-20 03:34:00

将区域设置从en_IN更改为en_US修复了它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20984741

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档