Webdialog to ruby encoding issue on OSX
-
@driven said:
@ Steve
do you think the two are unrelated?
johnIt's possible they have the same cause, but I am not sure how to prove that.
The man page for the locale command says:
LANG Used as a substitute for any unset LC_* variable. If LANG is unset, it will act as if set to "C". If any of LANG or LC_* are set to invalid values, locale acts as if they are all unset.
So the behavior you get is consistent with LANG not being set by SU when it launches a subshell. Also, if you set ENV[LANG] to a specific locale such as "en_US.UTF-8" in the Ruby Console before doing the %x, the other variables all follow.
So far as I can tell, SU doesn't launch a separate process for a WebDialog (at least I don't see one reported in Activity Monitor). I don't know what environment a WebDialog gets...can it be read from javascript?
Steve
-
@tt_su said:
So this only happen on OSX, not on Windows?
hi TT
did you get a chance to run this on your mac?
and did it confirm what I state, on your setup?
john
Advertisement