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

Allan CORNET allan.cornet at scilab.org
Thu Jan 22 11:39:00 CET 2009


Hi,

I do some tests about localization , on a windows XP Multilanguage :

I set "Regional and Language options" in control panel Windows:

1] Macau , scilab language zh_CN --> Menus enabled

2] P.R.C , scilab language zh_CN --> Menus disabled

3] Singapore , scilab language zh_CN --> Menus disabled

4] Hong Kong , scilab language zh_CN --> Menus enabled

5] Taiwan , scilab language zh_CN --> Menus enabled 

6] Taiwan , scilab language zh_TW --> Menus disabled


Why 2] and 6] do not work ?

Allan


-----Message d'origine-----
De : Yung-Jang Lee [mailto:yjlee123 at gmail.com] 
Envoyé : jeudi 22 janvier 2009 10:43
À : dev at lists.scilab.org
Objet : Re: [Scilab-Dev] PATCH for set/get environment variables

Hi,

>
> Launch scilab and setdefaultlanguage('zh_CN')

Under my  Chinee-Traditional (language 'zh_TW') Windows, and set

  setdefaultlanguage('zh_TW')
  setdefaultlanguage('zh_CN)
  setdefaultlanguage('fr_FR')
  setdefaultlanguage('ru_RU')

for test, menus for 'zh_TW' and 'zh_CN' is OK, but with gray menu for 'fr_FR' and 'ru_RU' .

I think it dependents on the code page of the Windows system currently  used. And it is not a serious bug since most users don't set default language not compatible with system encoding.

If we want to resolve this bug, may be we should add a encoding argument to  'setdefaultlanguage' for example,


  setdefaultlanguage('zh_TW','BIG5')

or

setdefaultlanguage('ru_RU','CP1251')


Regards,

Yung-Jang Lee
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XP Chinois - Macau.png
Type: image/png
Size: 215124 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20090122/0e1390b6/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XP Chinois - PRC.png
Type: image/png
Size: 213899 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20090122/0e1390b6/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XP Chinois - Singapore.png
Type: image/png
Size: 214416 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20090122/0e1390b6/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XP Chinois - Hong Kong (S.A.R).png
Type: image/png
Size: 214118 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20090122/0e1390b6/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XP Chinois - Taiwan.png
Type: image/png
Size: 213426 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20090122/0e1390b6/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Language Taiwan - Scilab zh_TW.png
Type: image/png
Size: 216704 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20090122/0e1390b6/attachment-0005.png>


More information about the dev mailing list