gpt4 book ai didi

ubuntu - ubuntu 12.04 上的诡计给出 "input locale conversion error"

转载 作者:行者123 更新时间:2023-12-04 19:20:40 25 4
gpt4 key购买 nike

运行 guile(以交互模式或使用脚本)在我的 ubuntu 12.04 上出现此错误:-

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_IN.UTF-8如果您想使用印度英语,请作为您的编码。不要忘记运行 sudo locale-gen en_IN如果你还没有。

长答案:我终于开始安装 Ubuntu 12.04.3,所以我可以测试一下。当我测试它时,似乎语言环境必须包含编码,否则它会失败:

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

关于ubuntu - ubuntu 12.04 上的诡计给出 "input locale conversion error",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20984741/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com