cvs: php4 /ext/iconv iconv.c
| From: | Derick Rethans | Date: | Fri, 19 Jul 2002 07:18:17 +0000 |
| Subject: | cvs: php4 /ext/iconv iconv.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12880@lists.php.net to get a copy of this message | ||
derick Fri Jul 19 03:18:17 2002 EDT
Modified files:
/php4/ext/iconv iconv.c
Log:
Unify error messages
Index: php4/ext/iconv/iconv.c
diff -u php4/ext/iconv/iconv.c:1.41 php4/ext/iconv/iconv.c:1.42
--- php4/ext/iconv/iconv.c:1.41 Sat Jul 13 04:42:38 2002
+++ php4/ext/iconv/iconv.c Fri Jul 19 03:18:16 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: iconv.c,v 1.41 2002/07/13 08:42:38 sniper Exp $ */
+/* $Id: iconv.c,v 1.42 2002/07/19 07:18:16 derick Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -175,7 +175,7 @@
if (cd == (iconv_t)(-1)) {
*err = PHP_ICONV_UNKNOWN;
- php_error(E_WARNING, "%s(): unknown error, unable to convert from
%s' to
%s'",
+ php_error(E_WARNING, "%s(): Unknown error, unable to convert from %s' to
%s'",
get_active_function_name(TSRMLS_C), in_charset, out_charset);
efree(out_buffer);
return FAILURE;
@@ -211,11 +211,11 @@
if (cd == (iconv_t)(-1)) {
if (errno == EINVAL) {
*err = PHP_ICONV_WRONG_CHARSET;
- php_error(E_NOTICE, "%s(): wrong charset, cannot convert from %s' to
%s'",
+ php_error(E_NOTICE, "%s(): Wrong charset, cannot convert from %s' to
%s'",
get_active_function_name(TSRMLS_C), in_charset, out_charset);
} else {
*err = PHP_ICONV_CONVERTER;
- php_error(E_NOTICE, "%s(): cannot open converter",
+ php_error(E_NOTICE, "%s(): Cannot open converter",
get_active_function_name(TSRMLS_C));
}
return FAILURE;
@@ -252,24 +252,24 @@
if (result == (size_t)(-1)) {
switch (errno) {
case EINVAL:
- php_error(E_NOTICE, "%s(): detected incomplete character in input string",
+ php_error(E_NOTICE, "%s(): Detected incomplete character in input string",
get_active_function_name(TSRMLS_C));
*err = PHP_ICONV_ILLEGAL_CHAR;
break;
case EILSEQ:
- php_error(E_NOTICE, "%s(): detected illegal character in input string",
+ php_error(E_NOTICE, "%s(): Detected illegal character in input string",
get_active_function_name(TSRMLS_C));
*err = PHP_ICONV_ILLEGAL_SEQ;
break;
case E2BIG:
/* should not happen */
- php_error(E_WARNING, "%s(): run out buffer",
+ php_error(E_WARNING, "%s(): Run out buffer",
get_active_function_name(TSRMLS_C));
*err = PHP_ICONV_TOO_BIG;
break;
default:
/* other error */
- php_error(E_NOTICE, "%s(): unknown error (%d)",
+ php_error(E_NOTICE, "%s(): Unknown error (%d)",
get_active_function_name(TSRMLS_C), errno);
*err = PHP_ICONV_UNKNOWN;
efree(out_buf);