openbsd-ports/www/mozilla-firebird/patches/patch-xpcom_io_nsNativeCharsetUtils_cpp
wilfried 2c5c44dae5 import of mozilla-firebird 0.6
The Mozilla Firebird project is a redesign of Mozilla's browser
component, written using the XUL user interface language and designed
to be cross-platform.
2003-05-18 20:43:49 +00:00

16 lines
637 B
Plaintext

$OpenBSD: patch-xpcom_io_nsNativeCharsetUtils_cpp,v 1.1.1.1 2003/05/18 20:43:49 wilfried Exp $
--- xpcom/io/nsNativeCharsetUtils.cpp.orig Fri Mar 21 15:24:40 2003
+++ xpcom/io/nsNativeCharsetUtils.cpp Sun May 18 04:50:20 2003
@@ -256,7 +256,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