You are not logged in.
When I try to use my Ruby script I always get a "invalid byte sequence in US-ASCII (ArgumentError) exception". I managed to track down that program arguments are passed in US-ASCII encoding. However Ruby scripts are using strings with UTF-8 encoding. Formerly those Ruby scripts worked fine, and I found out they keep working if I explicitly convert program arguments (passed as ARGV[]) to UTF-8 encoding.
I think I have "locale" problems. Maybe I should set up LC_CTYPE somewhere in the config files.
When I issue command "locale -a" I see:
C
POSIX
en_US.utf8
hu_HU.utf8/etc/locale.conf
LANG=en_EN.UTF-8
LANGUAGE=en_EN.UTF-8
LC_CTYPE=en_EN.UTF-8However I added the last line recently, and I don't know how to "source" this kind of file, to manifest their content.
Offline
As far as I know, the locale / LANG setting en_EN.* does not exist, at least it does not appear in my /etc/locale.gen.
You probably want en_{US,GB}.UTF-8 (or anything else from /etc/locale.gen)
Though, I am not sure whether this is related to your problem, since 'locale -a' gives correct output.
Last edited by respiranto (2015-06-02 20:18:07)
Offline
Thx, this explains everything.
Offline
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline