Non Unicode language locale patch for Windows and Linux
Yung-Jang Lee
yjlee123 at gmail.com
Tue Jun 10 19:41:11 CEST 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20080611/0cc5832a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chinesePatchV2.zip
Type: application/zip
Size: 529279 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20080611/0cc5832a/attachment.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Scilab5WindowsZh_TW.png
Type: image/png
Size: 15850 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20080611/0cc5832a/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Scilab5LinuxZh_TWBIG5.png
Type: image/png
Size: 53796 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20080611/0cc5832a/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ScilabUnixZh_CNGB2312.png
Type: image/png
Size: 45097 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20080611/0cc5832a/attachment-0002.png>
More information about the dev
mailing list