openbsd-ports/www/mozilla/patches/patch-xpcom_io_nsNativeCharsetUtils_cpp
2004-01-18 10:49:33 +00:00

16 lines
655 B
Plaintext

$OpenBSD: patch-xpcom_io_nsNativeCharsetUtils_cpp,v 1.2 2004/01/18 10:49:33 wilfried Exp $
--- xpcom/io/nsNativeCharsetUtils.cpp.orig 2003-11-19 20:35:09.000000000 +0100
+++ xpcom/io/nsNativeCharsetUtils.cpp 2003-12-12 15:43:29.000000000 +0100
@@ -294,7 +294,11 @@ nsNativeCharsetConverter::LazyInit()
{
const char *blank_list[] = { "", NULL };
const char **native_charset_list = blank_list;
+#ifdef CODESET
const char *native_charset = nl_langinfo(CODESET);
+#else
+ const char *native_charset = nsnull;
+#endif
if (native_charset == nsnull) {
NS_ERROR("native charset is unknown");
// fallback to ISO-8859-1