From b00809a32285be24a0ad41ecd1f906e719742c86 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 8 Aug 2001 20:00:09 +0000 Subject: [PATCH] Fix probs on OpenBSD-current and RedHat 6.1 --- ext/standard/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/html.c b/ext/standard/html.c index 5d1b01fd27..56ee51b495 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -228,7 +228,7 @@ static enum entity_charset determine_charset(char * charset_hint) 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 -- 2.40.0