Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        lang.c 


Log Message:
Paranoia.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/lang.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- lang.c      19 Mar 2005 16:40:06 -0000      1.6
+++ lang.c      23 Mar 2005 19:40:56 -0000      1.7
@@ -45,6 +45,11 @@
    pi = (char *)txt;
    po = buf;
    ni = (len > 0) ? len : strlen(txt);
+   if (!icd)
+     {
+       Eprintf("*** WARNING - Missing conversion\n");
+       return Estrndup(txt, ni);
+     }
    no = sizeof(buf);
    err = iconv(icd, &pi, &ni, &po, &no);
 
@@ -95,7 +100,7 @@
 {
 #if HAVE_ICONV
    if (Mode.text.utf8_int == want_utf8)
-      return (char *)str;
+      return str;
 
    if (str == NULL)
       return NULL;
@@ -105,7 +110,7 @@
 
    return Eiconv(iconv_cd_int2loc, str, strlen(str));
 #else
-   return (char *)str;
+   return str;
 #endif
 }
 




-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to