openbsd-ports/www/mozilla-firefox/patches/patch-xpcom_io_nsNativeCharsetUtils_cpp
2004-02-15 19:37:14 +00:00

16 lines
659 B
Plaintext

$OpenBSD: patch-xpcom_io_nsNativeCharsetUtils_cpp,v 1.1.1.1 2004/02/15 19:37:25 wilfried Exp $
--- xpcom/io/nsNativeCharsetUtils.cpp.orig 2003-07-30 07:58:28.000000000 +0200
+++ xpcom/io/nsNativeCharsetUtils.cpp 2003-12-12 12:41:30.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