[Scilab-Dev] PATCH for set/get environment variables

Yung-Jang Lee yjlee123 at gmail.com
Wed Jan 21 17:33:51 CET 2009


>
> I will install tomorrow scilab (nightly) with your modification about getenv & setenv and I will check your test.

Remember that for Chinese Windows, you can only test chinese characters,

-----------------------------------
specialName='中文' ;     //  for CP950, BIG5,zh_TW, zh_TW.utf-8, zh_CN,zh_CN.utf-8
setenv('env',specialName);
if getenv('env') <> specialName then pause, end
------------------------------------


The following strings are not allowable  for Chinese Windows

specialName='ЁЂЄЉф';  // russian LANG=ru_RU, ru_RU.utf-8
specialName='グゲゾタ'; // Japaness LANG=ja_JP ,
specialName='메일링을';  //  korean LANG=ko_KR, ko_KR=utf-8
specialName='æøå';    // LANG=fr_FR





> I have a problem with menus. Some menus of the main console are grayed.
> But graphics menus are enabled.
>

It look like the same situation  as I reported before ("Startup
execution:" and " loading initial environment" messages missing)

http://lists.scilab.org/cgi-bin/ezmlm-browse?list=localization&cmd=showmsg&msgnum=83


Yung-Jang Lee
>
> -----Message d'origine-----
> De : Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org]
> Envoyé : mercredi 21 janvier 2009 14:47
> À : dev at lists.scilab.org
> Objet : Re: [Scilab-Dev] PATCH for set/get environment variables
>
> Le mercredi 21 janvier 2009 à 21:20 +0800, Yung-Jang Lee a écrit :
>> > 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=40  3
>>
>>
>> Under Windows, if you system code page  is not  "CP1251"  the russian
>> characters  'ЁЂЄЉф' wouldn't be accepted as environment variable and
>> that is reasonable.
>>
>> ------------------------setgetenv.tst-----------------
> [...]
>
>> --------------------------------------------------------
>>
>> It means we can only test  part of 'setgetenv.tst' for each languages
>> (chinese,russian,japaness,korean,french)  under Windows.
>>
>> So, if you are testing 'setgetenv.tst' not in  "CP1251" code page
>> under Windows, then message of the report
>>
>> http://bugzilla.scilab.org/show_bug.cgi?id=4003
>>
>> shouldn't be considered as a bug.
> I am not sure to understand your point.
>
> This stuff is working under Linux and we should be able to reach this
> goal under Windows too.
> Allan is going to try to install a 100% Chinese Windows
>
> Btw, could you make a small change on the function localeToUTF ?
> For now, it has a limitation about the string we can return (max size:
> MAXPRINTF/bsiz).
>
> Sylvestre
>
>
>



More information about the dev mailing list