You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: 1.2.11 Reported for operating system, platform: Windows (All), x86
Comments on the original bug report:
On 2006-11-17 07:06:16 +0000, aki. wrote:
Hello,
When Japanese is given to SDL_WM_SetCaption() on Windows, it garbles.
WinAPI receives string corresponding to the code page of the system.
Therefore, I think that it should use such as following codes instead of SDL_iconv_utf8_latin1():
On 2007-02-13 04:54:06 +0000, Ryan C. Gordon wrote:
Created attachment 189
Proposed patch to handle Unicode...
Here's a proposed patch...it is untested and may not even compile, yet.
It will see if SetWindowTextW() is available in kernel32.dll (as it will be on WinNT, WinXP, Win2000 and Vista), and if so, it feeds the ucs-2 string to it. This will allow, for example, Japanese characters to be used in the titlebar on a WinXP box that uses a Russian codepage.
If SetWindowsTextW() isn't available (Win95, Win98, WinME), then it will use WideCharToMultiByte(CP_ACP, ...) as originally proposed. This will not necessarily work everywhere, but it will probably work in most real life scenarios, and definitely better than assuming a latin1 codepage as we currently do.
If there are no objections, I'll commit this patch once I've had a chance to compile and test it on Windows.
--ryan.
On 2007-02-16 01:21:47 +0000, Ryan C. Gordon wrote:
Fixed in svn revision # 2985 for the 1.2 branch.
--ryan.
The text was updated successfully, but these errors were encountered:
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: 1.2.11
Reported for operating system, platform: Windows (All), x86
Comments on the original bug report:
On 2006-11-17 07:06:16 +0000, aki. wrote:
On 2007-02-13 04:54:06 +0000, Ryan C. Gordon wrote:
On 2007-02-16 01:21:47 +0000, Ryan C. Gordon wrote:
The text was updated successfully, but these errors were encountered: