[ scummvm-Patches-2167477 ] SDL: setWindowCaption() only works for ASCII

SourceForge.net noreply at sourceforge.net
Wed Oct 15 07:07:24 CEST 2008


Patches item #2167477, was opened at 2008-10-15 07:07
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=2167477&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Torbjrn Andersson (eriktorbjorn)
Assigned to: Nobody/Anonymous (nobody)
Summary: SDL: setWindowCaption() only works for ASCII

Initial Comment:
There was a recent forum post [1] which noted that ScummVM doesn't set the window caption properly if a game title contains characters outside of 7-bit ASCII. On some systems, it prints the wrong characters. On others, it simply fails.

Apparently, SDL_WM_SetCaption() expects the string to be encoded with UTF-8 [2], but ScummVM uses ISO 8859-1 ("Latin-1") internally. The attached patch translates the string if necessary. It seems to work fine on my Linux box, but I'd appreciate input and testing on other systems.

[1] http://forums.scummvm.org/viewtopic.php?t=6383
[2] http://www.libsdl.org/cgi/docwiki.cgi/SDL_WM_SetCaption

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=2167477&group_id=37116




More information about the Scummvm-tracker mailing list