[Scilab-Dev] Non Unicode language locale patch for Windows and Linux
Sylvestre Ledru
sylvestre.ledru at inria.fr
Tue Jun 24 22:35:51 CEST 2008
Hello
As we say in French "bien joué". It works perfectly for me ! Well done.
I have now to see deeper how you did it and include this in the trunk.
Many thanks for this,
Sylvestre
Le mercredi 11 juin 2008 à 01:41 +0800, Yung-Jang Lee a écrit :
> Hi, all :
>
> Attached is my test patch for locales which is not subset of UNICODE
> for Scilab5Beta2.
>
> I have tested it under Windows and Linux for Chinese-Traditional
> (zh_TW , with windows Code Page 950 , Linux with LANG=zh_TW.BIG5 and
> LANG=zh_TW.UTF-8 ) and Chinese-Simplified (zh_CN Linux,
> LANG=zh_CN.GB2312 , LANG=zh_CN.UTF-8) and have the corrected
> results(ref. to my PNG files).
>
> According to the documents about Windows Code Page
> ( http://www.science.co.il/Language/Locale-Codes.asp) and
> corresponding characters set
> (http://www.science.co.il/Language/Character-Sets.asp), the only code
> page that don't need a locale to UTF8 convert is CP1252 (iso-8859-1).
> So, I use following rules to trigger the convert (function
> openLocaleToUTFConverter in file localetoutf.c)
>
> Under Windows : if code page is not CP1252
> Under Linux : if language locale explicit set to non
> unicode,for examples zh_TW.BIG5, zh_CN.GB2312,..
>
> Hope it work for other languages.
>
> YungLee
>
More information about the dev
mailing list