TAKESHIMA Hidenori <[EMAIL PROTECTED]> wrote:

[...]
> Now I modify X11DRV to support DBCS.
[...]

Hello.

Is it really needed to introduce new hacks for DBCS support?
Wine now have support for code pages including DBCS.

> -         str2b_dst->byte2 = str[i];
> -  if (IsDBCSLeadByteEx( codepage, str[i] ))
> +  if ( IsDBCSLeadByteEx( codepage, str[i] ) && (str[i+1] != 0) )
>    {
> -             str2b_dst->byte1 = str[i + 1];
> +      str2b_dst->byte1 = str[i];
> +      str2b_dst->byte2 = str[i+1];
>        i++;
>    }
>    else
> +  {
>        str2b_dst->byte1 = 0;
> +      str2b_dst->byte2 = str[i];
> +  }

Is that part of patch is right? If order of bytes for DBCS fonts in X
is really reverse, then it should be fixed.

Dmitry.


Reply via email to