From 2fe13a1f448ff27925f92a557f145bab9ab91a0e Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 11 Feb 2011 16:10:36 +0000 Subject: [PATCH] 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(). --- hw/xwin/InitOutput.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/hw/xwin/InitOutput.c b/hw/xwin/InitOutput.c index d04b47cdc..9f4a2f807 100644 --- a/hw/xwin/InitOutput.c +++ b/hw/xwin/InitOutput.c @@ -35,7 +35,6 @@ from The Open Group. #include "winmsg.h" #include "winconfig.h" #include "winprefs.h" -#include "X11/Xlocale.h" #ifdef DPMSExtension #include "dpmsproc.h" #endif @@ -1018,14 +1017,6 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[]) if (g_fXdmcpEnabled || g_fAuthEnabled) 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 winDebug("InitOutput - Returning.\n");