diff options
-rw-r--r-- | ext/standard/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |