Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        ecore_x_events.c 


Log Message:


codeset patch from illogict

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_events.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -3 -r1.79 -r1.80
--- ecore_x_events.c    6 Jan 2006 20:22:09 -0000       1.79
+++ ecore_x_events.c    18 Feb 2006 04:35:43 -0000      1.80
@@ -1,12 +1,21 @@
 /*
  * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
  */
+#include "langinfo.h"
 #include "ecore_private.h"
 #include "Ecore.h"
 #include "ecore_x_private.h"
 #include "Ecore_X.h"
 #include "Ecore_X_Atoms.h"
 
+/** OpenBSD does not define CODESET
+ * FIXME ??
+ */
+
+#ifndef CODESET
+#define CODESET "INVALID"
+#endif
+
 #if 0
 static void _ecore_x_event_free_window_prop_name_class_change(void *data, void 
*ev);
 static void _ecore_x_event_free_window_prop_title_change(void *data, void *ev);
@@ -191,7 +200,7 @@
    if (val > 0)
      {
        buf[val] = 0;
-       e->key_compose = ecore_txt_convert("ISO8859-1", "UTF-8", buf);
+       e->key_compose = ecore_txt_convert(nl_langinfo(CODESET), "UTF-8", buf);
      }
    else e->key_compose = NULL;
    keyname = XKeysymToString(sym);




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to