Mercurial > dwindows
diff os2/dw.c @ 1639:5c8a5c894ab0
Set the OS/2 codepage to 1208 (UTF-8) when creating the message queue.
On supported versions of OS/2 (WSeB and eCS) this will enabled UTF-8
support in Dynamic Windows. Unsupported versions will remain in
the default native codepage.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 02 Apr 2012 09:49:07 +0000 |
parents | 1d3013463204 |
children | e21c70d75cb1 |
line wrap: on
line diff
--- a/os2/dw.c Sat Mar 31 17:17:11 2012 +0000 +++ b/os2/dw.c Mon Apr 02 09:49:07 2012 +0000 @@ -4022,6 +4022,8 @@ { dwhab = WinInitialize(0); dwhmq = WinCreateMsgQueue(dwhab, 0); + /* Set the codepage to 1208 (UTF-8) */ + WinSetCp(dwhmq, 1208); } rc = WinRegisterClass(dwhab, (PSZ)ClassName, _wndproc, CS_SIZEREDRAW | CS_CLIPCHILDREN, 32);