[Scilab-Dev] PATCH for set/get environment variables
Sylvestre Ledru
sylvestre.ledru at scilab.org
Wed Jan 21 12:28:09 CET 2009
Hello,
First, please apologise for the delay ...
I have been playing if your modifications and writing tests and
everything seems to be OK to me under Linux. Thanks for your work.
I pushed all the modification in the master & branch 5.1.
However, it seems to fail under Windows:
http://bugzilla.scilab.org/show_bug.cgi?id=4003
Can you have a look ?
Thanks!
Sylvestre
Le samedi 03 janvier 2009 à 23:40 +0800, Yung-Jang Lee a écrit :
> Sylvestre,
>
> Attach is the modified patch for getenv/setenv, please take a look to
> see if the problems you mentioned been solved or not.
>
>
> In this patch, if the system encoding is not explicitly given (for
> examples, fr_FR, C) the encoding is set to ISO8859-1 rather than
> UTF-8, with following exceptions
>
>
> zh_TW ----> BIG5 //chinese traditional
> zh_CN -----> GB2312 ) //chinese simplified
> ru_RU -----> ISO-8859-5 //russian
> ja_JP, jp_JP ---->eucJP // japaness
> ko,ko_KR ----->eucKR // korean
>
>
> And I have tested it under Linux with follwing script,
>
> -----------------------------------------------------------------------------------------------
> specialName='中文' ; // for CP950, BIG5,zh_TW, zh_TW.utf-8, zh_CN,zh_CN.utf-8
> or
> specialName='ЁЂЄЉф'; // russian LANG=ru_RU, ru_RU.utf-8
> or
> specialName='グゲゾタ'; // Japaness LANG=ja_JP ,
> or
> specialName='메일링을'; // korean LANG=ko_KR, ko_KR=utf-8
> or
> specialName='æøå'; // LANG=fr_FR,C,en_US, and fr_FR.utf
>
>
> setenv('env',specialName)
> getenv('env')==specialName
> -----------------------------------------------------------------------------------------
>
> And it pass for all different LANG setting.
>
>
> Yung-Jang Lee
More information about the dev
mailing list