openbsd-ports/www/mozilla-firefox/patches/patch-xpcom_io_nsNativeCharsetUtils_cpp
naddy 4c3d8187e6 * Update to 1.0.1. Fixes IDN spoofing and other vulnerabilities.
* Dependency fixes from alek@
* Don't install world-writable files and directories related to
extensions.  Breaks functionality in that area.
2005-03-02 19:30:18 +00:00

16 lines
630 B
Plaintext

$OpenBSD: patch-xpcom_io_nsNativeCharsetUtils_cpp,v 1.3 2005/03/02 19:30:18 naddy Exp $
--- xpcom/io/nsNativeCharsetUtils.cpp.orig Tue Nov 9 21:46:03 2004
+++ xpcom/io/nsNativeCharsetUtils.cpp Fri Feb 25 21:09:20 2005
@@ -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