Author Topic: X Progress Window and UTF8  (Read 775 times)

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
X Progress Window and UTF8
« on: October 13, 2009, 03:31:26 pm »
Hi,

Another problem appears with localization LinuxMCE UI. The progress window where some messages are displayed during loading the core is developed using Xlib. I didn't find a way to show messages correctly. As I understand the function  XDrawString() doesn't support UFT8 at all. Some other one should be use such XmbDrawString() or so. But I didn't find the actual solution. If somebody who has better experience with X programming can help me I'll be very very appreciated!

TIA
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5495
  • DOES work for LinuxMCE.
    • View Profile
Re: X Progress Window and UTF8
« Reply #1 on: October 13, 2009, 03:58:47 pm »
The correct course of action here would be to pick a UI toolkit, either GTK+ or Qt, and rewrite the OrbiterLinux portions that use the xlib calls, to use the toolkit calls, because xlib does NOT support unicode, and the amount of infrastructure required to graft such support on (think Pango) would be better spent basically just rewriting the code to use proper calls anyway. There are far too many weird little bugs with this code to continue using it in its current state.

Go for it.

-Thom

nite_man

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1019
  • Want to work with LinuxMCE
    • View Profile
    • Smart Home Blog
Re: X Progress Window and UTF8
« Reply #2 on: October 13, 2009, 10:00:51 pm »
You confirmed my thoughts, Tom :) I vote Qt since LinuxMCE is based on KDE. If so I'll try to implement it.
Michael Stepanov,
My setup: http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup
Russian LinuxMCE community: http://linuxmce.ru