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

Allan CORNET allan.cornet at scilab.org
Wed Jan 21 16:08:20 CET 2009


Hi,

I installed a Windows XP chinese (simplified).

I install scilab 5.1-1232475767 
http://www.scilab.org/download/dailyDownload.php?filename=scilab-branches-5.1-1232475767.exe&date=2009-01-21

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

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

Have you got a idea about this problem ?
English & French mode work

I have also this problem on Vista Multilanguage with Chinese and Russian :'( 

Best Regards

Allan :)

-----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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: XP Chinois-2009-01-21-15-57-29.png
Type: image/png
Size: 165781 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20090121/2082cb47/attachment.png>


More information about the dev mailing list