SDL: setWindowCaption() only works for ASCII
|Reported by:||eriktorbjorn||Owned by:||fingolfin|
There was a recent forum post  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 , 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.
 http://forums.scummvm.org/viewtopic.php?t=6383  http://www.libsdl.org/cgi/docwiki.cgi/SDL_WM_SetCaption
Ticket imported from: #2167477. Ticket imported from: patches/1033.