]> granicus.if.org Git - php/commitdiff
Fix probs on OpenBSD-current and RedHat 6.1
authorWez Furlong <wez@php.net>
Wed, 8 Aug 2001 20:00:09 +0000 (20:00 +0000)
committerWez Furlong <wez@php.net>
Wed, 8 Aug 2001 20:00:09 +0000 (20:00 +0000)
ext/standard/html.c

index 5d1b01fd2752afd47ab5e5ab673a7924b28c582b..56ee51b49500d5e5f0918aef669170d784b76b3a 100644 (file)
@@ -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