[Wine] Problem with PowerBuilder 6-based app

Geoff Streeter geoff at dyalog.com
Tue Mar 18 09:55:07 CDT 2008


Hugo Cardozo wrote:
>> I'm looking for somebody who has tried powerbuilder 6-based apps...
>>     
> Hi again;
> Looking for Unicode issues (as I'm using Debian Etch with UTF-8), I found the 
> bug 7512 in WineHQ bugzilla (about Unicode text scrambled in comboboxes). As 
> you can see in the snapshot www.coopcacec.com.py/webcacec/dbcoop/snap3.png, 
> the header of the message box do not display well numbers. Maybe that bug is 
> related to my problem...
>
> Still searching ;)
>
> Hugo S.
>
>
>   
A windows unicode application will be using UTF16. Although, unless you 
are using some extremely unusual characters, that is the same as UCS2. 
So the application is sending two byte unicode characters to your combo box.

At some point wine will need to convert those in order to show them in 
its own version of a combo box. It is that conversion that will require 
translation from UTF16 to UTF8. The big difference between UCS2 and UTF8 
is that UCS2 is indexable. If you want to address the 16th character 
then it is at the 32nd byte. With UTF8 you have to walk along the whole 
string counting characters until you reach the 16th. Of course the same 
lack of indexability also applies to UTF16 but few users would notice an 
error induced by treating UTF16 as UCS2.

The other issue is whether the font used actually has all the characters 
you are trying to display.

Geoff



More information about the wine-users mailing list