apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ulrich Drepper <drep...@redhat.com>
Subject Re: Is --enable-utf8 working everywhere?
Date Wed, 17 Jul 2002 00:21:52 GMT
On Tue, 2002-07-16 at 15:48, Blair Zajac wrote:

As a real patch use

--- apr/i18n/unix/xlate.c	Tue Apr 16 15:37:07 2002
+++ apr/i18n/unix/xlate.c-new	Tue Jul 16 17:21:07 2002
@@ -255,7 +255,8 @@
     if (!found) {
         new->ich = iconv_open(topage, frompage);
         if (new->ich == (iconv_t)-1) {
-            return errno;
+            int e = errno;
+            return e ? e : EINVAL;
         }
         found = 1;
         check_sbcs(new);


-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Mime
View raw message