16 lines
630 B
Plaintext
16 lines
630 B
Plaintext
$OpenBSD: patch-xpcom_io_nsNativeCharsetUtils_cpp,v 1.3 2006/12/04 09:47:54 jolan Exp $
|
|
--- xpcom/io/nsNativeCharsetUtils.cpp.orig Thu Jun 22 22:13:01 2006
|
|
+++ xpcom/io/nsNativeCharsetUtils.cpp Thu Nov 23 19:04:00 2006
|
|
@@ -340,7 +340,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
|