Короткий ответ: вы должны использовать 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.
Коварство не будет работать с en_IN.utf-8 локали, так что я не могу установить локаль этого – Himanshu
ли вы бежите 'sudo locale-gen en_IN' сначала? Я попробовал, и это сработало для меня. –
Хорошо. Я понимаю что ты имеешь ввиду. – Himanshu