mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
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:
18
x11/pdcx11.c
18
x11/pdcx11.c
@@ -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)
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user