blob: 81e7226c94ad7438eed5aed09ebc925f3c7fb6ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-bn,v 1.1 2002/12/11 12:00:36 he Exp $
--- xpcom/io/nsNativeCharsetUtils.cpp.orig Sun Oct 6 05:42:55 2002
+++ xpcom/io/nsNativeCharsetUtils.cpp
@@ -256,7 +256,12 @@
{
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
|