xpra icon
Bug tracker and wiki

Opened 6 years ago

Closed 5 years ago

Last modified 3 years ago

#526 closed defect (wontfix)

unicode window titles do not work on XP

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 0.12
Component: platforms Version:
Keywords: win32 Cc:

Description (last modified by Antoine Martin)

GTK requires all window titles to be sent as UTF-8, which we now do explicitly (see r5694), but even with the patch attached which uses user32.SetWindowTextW on the window handle to bypass GTK and set the window title using UTF-16, we still get gibberish in the title bar...

The patch also checks and the window does support unicode (isWindowUnicode()==1).

This can be tested with tests.xpra.test_apps.test_window_title

Attachments (2)

win32-utf16-title.patch (2.1 KB) - added by Antoine Martin 6 years ago.
tries to use SetWindowTextW to set the window title
win32-utf16-title-MultiByteToWideChar.patch (2.9 KB) - added by Antoine Martin 6 years ago.
alternative patch using MultiByteToWideChar? instead of encode to utf-16-le

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by Antoine Martin

Attachment: win32-utf16-title.patch added

tries to use SetWindowTextW to set the window title

Changed 6 years ago by Antoine Martin

alternative patch using MultiByteToWideChar? instead of encode to utf-16-le

comment:1 Changed 5 years ago by Antoine Martin

Resolution: wontfix
Status: newclosed
Summary: unicode window titles do not work on win32unicode window titles do not work on XP

Turns out that this is a limitation of XP, works fine with win7 (see #826).

So I don't think we can fix this.

comment:2 Changed 4 years ago by Antoine Martin

Description: modified (diff)

comment:3 Changed 3 years ago by Antoine Martin

Milestone: future0.12
Note: See TracTickets for help on using tickets.