[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [OT] Encoding error when calling a ruby script from Emacs using
From: |
Achim Gratz |
Subject: |
Re: [O] [OT] Encoding error when calling a ruby script from Emacs using shell-command |
Date: |
Sat, 01 Sep 2012 09:28:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Marcelo de Moraes Serpa writes:
> So, I did this:
>
> (defun test ()
> (setenv "LANG" "en_US.UTF-8")
> (setenv "LC_ALL" "en_US.UTF-8")
> (setenv "LC_CTYPE" "en_US.UTF-8")
> (shell-command "/Users/myself/.rvm/bin/rvm ruby-1.9.3-p194 do
> /usr/bin/rubyscript")
> )
This is nonsense, may I suggest you read locale (1p)? If you set
LC_ALL, this overrides the other two settings no matter what they are
set to (and you may prevent some scripts trying to set LC_COLLATE or
something like that from functioning correctly). Unless you really need
such a big hammer, set LANG (this provides the default) and leave it at
that.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
- Re: [O] [OT] Encoding error when calling a ruby script from Emacs using shell-command,
Achim Gratz <=