Compiling problem with -DX_LOCALE



Since gtk+-1.1.1?

Compiling with -DX_LOCALE has always problem.
(for Korean or Japaness X_LOCALE is useful...)

The X_LOCALE definition is added as follow.
$ CFLAGS="-DX_LOCALE" ./configure --prefix=/usr

and compilation OK. but... execution testgtk results 'core dump' !

This is my patch.. and It works fine with Non X_LOCALE system.

-------------------------8X--------------------------
--- gtk+-1.2.1/configure.in     Thu Mar 25 14:23:34 1999
+++ gtk+-1.2.1.new/configure.in Tue Apr 13 17:45:23 1999
@@ -249,14 +249,16 @@
   case $with_glib in
     /*)
       glib_dir=$with_glib
+      gmodlib_dir=$with_glib
       ;;
     *)
       glib_dir="\$(top_builddir)/$with_glib"
+      gmodlib_dir="\$(top_builddir)/$with_glib/gmodule"
       ;;
   esac

-  GLIB_CFLAGS="-I$glib_dir -I$glib_dir/gmodule"
-  GLIB_LIBS="$glib_dir/libglib.la $glib_dir/gmodule.la"
+  GLIB_CFLAGS="-I$glib_dir -I$gmodlib_dir"
+  GLIB_LIBS="$glib_dir/libglib.la $gmodlib_dir/libgmodule.la"
   GLIB_DEPLIBS=

   AC_SUBST(GLIB_CFLAGS)
--- gtk+-1.2.1/gtk/gtkrc.c      Wed Feb 24 19:15:12 1999
+++ gtk+-1.2.1.new/gtk/gtkrc.c  Tue Apr 13 18:15:04 1999
@@ -24,7 +24,7 @@
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */

-#include <X11/Xlocale.h>       /* so we get the right setlocale */
+#include <locale.h>    /* so we get the right setlocale */
 #include <ctype.h>
 #include <unistd.h>
 #include <sys/stat.h>
-------------------------8X--------------------------

Thanks



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]