Commit 2fe13a1f authored by Jon Turney's avatar Jon Turney
Browse files

hw/xwin: Drop call to setlocale()

Since we now only work with UTF-8 (or ISO8859-1) text in the clipboard,
we don't need to setlocale().
parent f269e01e
...@@ -35,7 +35,6 @@ from The Open Group. ...@@ -35,7 +35,6 @@ from The Open Group.
#include "winmsg.h" #include "winmsg.h"
#include "winconfig.h" #include "winconfig.h"
#include "winprefs.h" #include "winprefs.h"
#include "X11/Xlocale.h"
#ifdef DPMSExtension #ifdef DPMSExtension
#include "dpmsproc.h" #include "dpmsproc.h"
#endif #endif
...@@ -1018,14 +1017,6 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[]) ...@@ -1018,14 +1017,6 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[])
if (g_fXdmcpEnabled || g_fAuthEnabled) if (g_fXdmcpEnabled || g_fAuthEnabled)
winGenerateAuthorization(); winGenerateAuthorization();
/* Perform some one time initialization */
if (1 == serverGeneration) {
/*
* setlocale applies to all threads in the current process.
* Apply locale specified in LANG environment variable.
*/
setlocale(LC_ALL, "");
}
#if CYGDEBUG || YES #if CYGDEBUG || YES
winDebug("InitOutput - Returning.\n"); winDebug("InitOutput - Returning.\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment