Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
1638:c6ebff29a916 | 1639:5c8a5c894ab0 |
---|---|
4020 | 4020 |
4021 if(newthread) | 4021 if(newthread) |
4022 { | 4022 { |
4023 dwhab = WinInitialize(0); | 4023 dwhab = WinInitialize(0); |
4024 dwhmq = WinCreateMsgQueue(dwhab, 0); | 4024 dwhmq = WinCreateMsgQueue(dwhab, 0); |
4025 /* Set the codepage to 1208 (UTF-8) */ | |
4026 WinSetCp(dwhmq, 1208); | |
4025 } | 4027 } |
4026 | 4028 |
4027 rc = WinRegisterClass(dwhab, (PSZ)ClassName, _wndproc, CS_SIZEREDRAW | CS_CLIPCHILDREN, 32); | 4029 rc = WinRegisterClass(dwhab, (PSZ)ClassName, _wndproc, CS_SIZEREDRAW | CS_CLIPCHILDREN, 32); |
4028 rc = WinRegisterClass(dwhab, (PSZ)SplitbarClassName, _splitwndproc, 0L, 32); | 4030 rc = WinRegisterClass(dwhab, (PSZ)SplitbarClassName, _splitwndproc, 0L, 32); |
4029 rc = WinRegisterClass(dwhab, (PSZ)ScrollClassName, _scrollwndproc, 0L, 32); | 4031 rc = WinRegisterClass(dwhab, (PSZ)ScrollClassName, _scrollwndproc, 0L, 32); |