2014-01-08 1 views
0

실행 교활를 제공 내 우분투에서이 오류를 제공 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))'. 

이 또한 도움이 될 것입니다 디버깅하는 방법에 대한 입력 .

답변

1

짧은 대답 : 인도어를 사용하려면 en_IN.UTF-8을 인코딩으로 사용해야합니다. 아직 실행하지 않은 경우 sudo locale-gen en_IN을 실행하는 것을 잊지 마십시오.

오랫동안 답변 : 마침내 우분투 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. 
+0

계략이 – Himanshu

+0

당신이 실행 했는가에 내가 로케일을 설정할 수 en_IN.utf-8 로케일 작동하지 않을 것입니다 'sudo locale-gen en_IN' 먼저? 나는 그것을 시도하고 그것은 나를 위해 일했다. –

+0

확인. 무슨 뜻인지 알 겠어. – Himanshu

0

로캘을 en_IN에서 en_US로 변경하면 해결되었습니다.