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

gEDA-bug: geda



Full_Name: Werner Hoch
Version: 20050313
OS: Linux
Submission from: (NULL) (217.93.203.156)


geda requires to set the codeset in the LC_ALL environment variable. Example:
export LC_ALL=de_DE.UTF-8

Copying the codeset lines from gschem to geda seems to solve the problem:

regards
Werner

Index: main.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/geda/src/main.c,v
retrieving revision 1.7
diff -u -r1.7 main.c
--- main.c      12 Feb 2005 22:06:03 -0000      1.7
+++ main.c      15 Mar 2005 19:47:56 -0000
@@ -93,6 +93,7 @@
 #if ENABLE_NLS
        bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR);
        textdomain (PACKAGE);
+       bind_textdomain_codeset(PACKAGE, "UTF-8");
 #endif
        gtk_set_locale ();
        gtk_init (&argc, &argv);
Index: support.h
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/geda/src/support.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 support.h
--- support.h   18 Jan 2003 03:26:12 -0000      1.1.1.1
+++ support.h   15 Mar 2005 19:47:56 -0000
@@ -26,6 +26,7 @@
 #  define dgettext(Domain,Message) (Message)
 #  define dcgettext(Domain,Message,Type) (Message)
 #  define bindtextdomain(Domain,Directory) (Domain)
+#  define bind_textdomain_codeset(Domain, Codeset) ((const char *) (Codeset))
 #  define _(String) (String)
 #  define N_(String) (String)
 #endif