mirror of
https://github.com/php/php-src.git
synced 2026-04-20 22:41:20 +02:00
Fix probs on OpenBSD-current and RedHat 6.1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user