16 lines
630 B
Plaintext
16 lines
630 B
Plaintext
$OpenBSD: patch-xpcom_io_nsNativeCharsetUtils_cpp,v 1.2 2005/07/13 04:49:56 jolan Exp $
|
|
--- xpcom/io/nsNativeCharsetUtils.cpp.orig Sun Nov 7 23:20:05 2004
|
|
+++ xpcom/io/nsNativeCharsetUtils.cpp Tue Jul 12 22:06:58 2005
|
|
@@ -330,7 +330,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
|