Mercurial > dwindows
changeset 1642:e21c70d75cb1
For safety reasons on OS/2 in case the codepage isn't inherited...
Set the codepage for threads created by dw_thread_new() to 1208.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 02 Apr 2012 21:14:53 +0000 |
parents | cdbf4cc929fc |
children | 08da4840dfc3 |
files | os2/dw.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Mon Apr 02 19:44:45 2012 +0000 +++ b/os2/dw.c Mon Apr 02 21:14:53 2012 +0000 @@ -10775,10 +10775,13 @@ void _dwthreadstart(void *data) { HAB thishab = WinInitialize(0); - HMQ thishmq = WinCreateMsgQueue(dwhab, 0); + HMQ thishmq = WinCreateMsgQueue(thishab, 0); void (API_FUNC threadfunc)(void *) = NULL; void **tmp = (void **)data; + /* Set the codepage to 1208 (UTF-8) */ + WinSetCp(thishmq, 1208); + threadfunc = (void (API_FUNC)(void *))tmp[0]; threadfunc(tmp[1]);