# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1333401293 0 # Node ID e21c70d75cb14c5eccd4f58f26c9f43cbb73b358 # Parent cdbf4cc929fcf798336d8b0a1bb5742ae6899fa2 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. diff -r cdbf4cc929fc -r e21c70d75cb1 os2/dw.c --- 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]);