These calls under ifdef FOREIGN in XCursesInitscr() are (or would be)

already handled by XtSetLanguageProc() (if this whole thing worked).
This commit is contained in:
William McBrine
2006-12-01 07:56:03 +00:00
parent edefffdbca
commit d8f1322769
3 changed files with 7 additions and 22 deletions

View File

@@ -15,7 +15,7 @@
#include <stdlib.h>
RCSID("$Id: pdcx11.c,v 1.89 2006/11/27 04:23:26 wmcbrine Exp $");
RCSID("$Id: pdcx11.c,v 1.90 2006/12/01 07:56:03 wmcbrine Exp $");
/*** Functions that are called by both processes ***/
@@ -238,22 +238,6 @@ int XCursesInitscr(int argc, char *argv[])
XC_LOG(("XCursesInitscr() - called\n"));
#if defined FOREIGN
if (!setlocale(LC_ALL, ""))
{
fprintf(stderr, "ERROR: cannot set locale\n");
return ERR;
}
if (!XSupportsLocale())
{
fprintf(stderr, "ERROR: X does not support locale\n");
return ERR;
}
if (!XSetLocaleModifiers(""))
fprintf(stderr, "WARNING: Cannot set locale modifiers\n");
#endif
shmkeySP = getpid();
if (socketpair(AF_UNIX, SOCK_STREAM, 0, xc_display_sockets) < 0)

View File

@@ -11,7 +11,7 @@
* See the file maintain.er for details of the current maintainer. *
************************************************************************/
/* $Id: pdcx11.h,v 1.55 2006/11/27 04:23:26 wmcbrine Exp $ */
/* $Id: pdcx11.h,v 1.56 2006/12/01 07:56:03 wmcbrine Exp $ */
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -72,9 +72,6 @@
#include <keysym.h>
#include <Xatom.h>
#if defined FOREIGN
# include <Xlocale.h>
#endif
#include <curspriv.h>

View File

@@ -25,10 +25,14 @@
# include <xpm.h>
#endif
#if defined FOREIGN
# include <Xlocale.h>
#endif
#include <stdlib.h>
#include <string.h>
RCSID("$Id: x11.c,v 1.56 2006/12/01 02:20:27 wmcbrine Exp $");
RCSID("$Id: x11.c,v 1.57 2006/12/01 07:56:03 wmcbrine Exp $");
#ifndef XPOINTER_TYPEDEFED
typedef char * XPointer;