2005-03-02 14:30:18 -05:00
|
|
|
$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()
|
2004-02-15 14:37:14 -05:00
|
|
|
{
|
|
|
|
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
|