Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

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


Modified Files:
        ecore.c 


Log Message:


extra ecore_x and ecore_evas features for e17.. :)

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ecore.c     20 Oct 2004 17:51:26 -0000      1.8
+++ ecore.c     23 Nov 2004 15:17:53 -0000      1.9
@@ -1,5 +1,7 @@
 #include "ecore_private.h"
 #include "Ecore.h"
+#include <locale.h>
+#include <langinfo.h>
 
 static const char *_ecore_magic_string_get(Ecore_Magic m);
 static int _ecore_init_count = 0;
@@ -35,6 +37,11 @@
 {
    if (++_ecore_init_count == 1)
      {
+       setlocale(LC_CTYPE, "");
+       if (strcmp(nl_langinfo(CODESET), "UTF-8"))
+         {
+            printf("WARNING: not a utf8 locale!\n");
+         }
 #ifndef WIN32
        if (getenv("ECORE_FPS_DEBUG")) _ecore_fps_debug = 1;
        if (_ecore_fps_debug) _ecore_fps_debug_init();




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to