[Scilab-Dev] [scilab dev] Patch to draw non-UTF8 text in the graphic

Yung-Jang Lee yjlee123 at gmail.com
Mon Aug 4 17:55:40 CEST 2008


Aleksey  :

Attached is the update zip file with  2  additional  dlls  (totally 5 dlls)
that may be missed. Hope this resolve the problems.

These dlls are for Beta4 binary.


WBR,

YungLee


2008/8/4 Vorona Aleksey <voronaam at yandex.ru>

> Yung-Jang Lee wrote:
>
>> Sylvestre , Aleksey  and all:
>>
>> This is the patch to draw non-UTF8 text in the graphic. The following
>> commands are tested
>>
>>    title,xtitle, legend,legends,xstring,xstringb
>>
>> and a screenshot showing chinese is attached.
>>
>>
>> Since recent SVN trunk contain function ('ANSIToUTF8' inside
>> printf_scilab)
>> that conflict with my original design, so I modify functions in
>> 'localetoutf.c'  to always  convert  locale string to UTF8 and remove
>> calling 'ANSIToUTF8' , hope this can solve the conflict.
>>
>> This patch contain last patch I send to you.
>>
>> Cheers,
>>
>> YungLee
>>
>
> I am sorry, I am confused with bunch of patches, I am still in progress of
> rebuilding tries... So, I'll report about what I tested.
>
> I installed beta4 from scilab.org and changed DLL to ones you send to me.
> After that I've tested languages. I found that Russian translation is not
> completely checked in (I'll send patch later, after updating translation)
> and that Russian input works everywhere but Russian output fails everywhere.
> For example, in main console:
>
> -->ss = 'Тест'
>  ss  =
>
>  Тест
>
>
> It is regular wrong displaying Russian-page-UTF8 string as ASCII string.
> Same result I see after executing disp('Тест') from SciPad. It same result
> as result of command:
> $ echo 'Тест' | iconv -f cp1251 -t utf8
> Тест
>
> xtitle takes string correctly but during display it uses wrong page of
> Font, string 'Тест' displayed as 'Òåñò'
> It is same result as result of command
> $ echo 'Тест' | iconv -f utf8 -t cp1251 | iconv -f 8859_1 -t utf8
> Òåñò
>
> I still can't build Scilab_f2c.sln with MS Visual Studio Express. So, I may
> test any builds if somebody will upload it somewhere. I can give access to
> my FTP for easy file exchange.
>
> --
> WBR,
>   Vorona Aleksey.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20080804/a9105f63/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawingNonUnicodeTextPatch.zip
Type: application/zip
Size: 1084826 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/dev/attachments/20080804/a9105f63/attachment.zip>


More information about the dev mailing list