openbsd-ports/www/mozilla/patches/patch-xpcom_io_nsNativeCharsetUtils_cpp
kurt f353d0daae Upgrade to 1.7.5
Tested on i386/sparc64/macppc/alpha by myself and/or alek@
One issue found with sparc64: fetching mail crashes.

okay pval@
2005-03-13 05:02:16 +00:00

16 lines
629 B
Plaintext

$OpenBSD: patch-xpcom_io_nsNativeCharsetUtils_cpp,v 1.3 2005/03/13 05:02:17 kurt Exp $
--- xpcom/io/nsNativeCharsetUtils.cpp.orig Mon Jan 12 12:54:59 2004
+++ xpcom/io/nsNativeCharsetUtils.cpp Mon Jan 12 12:56:41 2004
@@ -329,7 +329,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