cvs: php4 /ext/iconv iconv.c
| From: | Yasuo Ohgaki | Date: | Sat, 07 Sep 2002 21:08:47 +0000 |
| Subject: | cvs: php4 /ext/iconv iconv.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13911@lists.php.net to get a copy of this message | ||
yohgaki Sat Sep 7 17:08:47 2002 EDT
Modified files:
/php4/ext/iconv iconv.c
Log:
Fixed errno hanlding. Patch by Moriyoshi Koizumi <readjust@deneb.freemail.ne.jp>
Index: php4/ext/iconv/iconv.c
diff -u php4/ext/iconv/iconv.c:1.47 php4/ext/iconv/iconv.c:1.48
--- php4/ext/iconv/iconv.c:1.47 Wed Sep 4 01:17:16 2002
+++ php4/ext/iconv/iconv.c Sat Sep 7 17:08:47 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: iconv.c,v 1.47 2002/09/04 05:17:16 yohgaki Exp $ */
+/* $Id: iconv.c,v 1.48 2002/09/07 21:08:47 yohgaki Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -139,7 +139,7 @@
char **out, size_t *out_len,
const char *in_charset, const char *out_charset, int *err TSRMLS_DC)
{
-#if ICONV_SUPPORTS_ERRNO
+#if !ICONV_SUPPORTS_ERRNO
unsigned int in_size, out_size, out_left;
char *out_buffer, *out_p;
iconv_t cd;