[Scilab-Dev] PATCH for set/get environment variables
Sylvestre Ledru
sylvestre.ledru at scilab.org
Fri Jan 2 18:07:47 CET 2009
Hello,
Thanks for the patch.
Interesting point, with or without your patch, when LANG=fr_FR , under
Linux, in the mode GUI, NW & NWNI, they all return:
-->setenv('env',specialName)
ans =
T
-->getenv('env')==specialName
ans =
T
but when I try with LANG=C, I am getting:
-->setenv('env',specialName)
ans =
T
-->getenv('env')==specialName
ans =
F
Do you have an idea why ?
Do you know if both are working under Windows ?
Sylvestre
Le vendredi 02 janvier 2009 à 22:30 +0800, Yung-Jang Lee a écrit :
> Sylvestre ,
>
> This is a patch to fix bug in set/get system environment variables,
> please take a look to see if it need further modifications.
>
> Yung-Jang Lee
>
> --------------test script ------------------------
> specialName='中文' ;// for CP950, BIG5
> //specialName='æøå'; // for fr_FR with character code > 127
> setenv('env',specialName)
> getenv('env')==specialName
> ------------------------------------------------------
More information about the dev
mailing list