cvs: php4 /ext/standard html.c
| From: | Wez Furlong | Date: | Wed, 08 Aug 2001 20:00:09 +0000 |
| Subject: | cvs: php4 /ext/standard html.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6663@lists.php.net to get a copy of this message | ||
wez Wed Aug 8 16:00:09 2001 EDT
Modified files:
/php4/ext/standard html.c
Log:
Fix probs on OpenBSD-current and RedHat 6.1
Index: php4/ext/standard/html.c
diff -u php4/ext/standard/html.c:1.30 php4/ext/standard/html.c:1.31
--- php4/ext/standard/html.c:1.30 Wed Jul 4 06:10:29 2001
+++ php4/ext/standard/html.c Wed Aug 8 16:00:09 2001
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.30 2001/07/04 10:10:29 wez Exp $ */
+/* $Id: html.c,v 1.31 2001/08/08 20:00:09 wez Exp $ */
#include "php.h"
#include "reg.h"
@@ -228,7 +228,7 @@
if (strlen(charset_hint) == 0) {
/* try to detect the charset for the locale */
-#if HAVE_NL_LANGINFO
+#if HAVE_NL_LANGINFO && HAVE_LOCALE_H && defined(CODESET)
charset_hint = nl_langinfo(CODESET);
#endif
#if HAVE_LOCALE_H