[Scummvm-devel] PORTERS: OSystem::setWindowCaption

Marcus Comstedt marcus at mc.pp.se
Sun Jun 7 23:56:12 CEST 2009


Max Horn <max at quendi.de> writes:

> 1) It would be cleaner to remove that hack, and instead override
> OSystem::engineInit(); in there, look at the value of "description"
> key for the active config domain. (Of course, the engineInit is fairly
> new, and was added *long* after your code was created).

Yes, I've applied the "if it ain't broken, don't fix it" methodology
to that part of the code.  :-)  If there is any need to modify it
for some other reason, looking for less arcane ways of getting the
game name would definitely fit on the agenda.


> 2) (also in reply to Torbjörn's mail) UTF-8 can be easily converted
> to/ from ASCII, or LATIN-1 (although of course chars not in ASCII /
> LATIN-1 cannot be translated).

Actually, not so easy as you might think.  A letter like "ä"
(0xe4 in LATIN-1) can be represented either by the Unicode codepoint
0xe4 (which transformed to UTF-8 becomes 0xc3 0xa4), or by the
sequence 0x61 0x308 (which becomes 0x61 0xcc 0x88 in UTF-8).
While the first is trivial to convert to LATIN-1, the second one
isn't.  And I seem to recall that MacOS X has a tendency to use the
second form.


  // Marcus






More information about the Scummvm-devel mailing list