From 996cfbc2fc820a911fafa881b4834d87bb494ad3 Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Wed, 6 Sep 2000 23:42:59 +0000 Subject: [PATCH] Changed assertion to warning when platform charset doesn't exist. --- xpcom/io/nsLocalFileCommon.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xpcom/io/nsLocalFileCommon.cpp b/xpcom/io/nsLocalFileCommon.cpp index 7ed52879aff0..6ffa870e8315 100644 --- a/xpcom/io/nsLocalFileCommon.cpp +++ b/xpcom/io/nsLocalFileCommon.cpp @@ -139,7 +139,9 @@ nsFSStringConversion::PrepareFSCharset() { // lazy eval of the file system charset NS_WITH_SERVICE(nsIPlatformCharset, pcharset, NS_PLATFORMCHARSET_PROGID, &res); - NS_ASSERTION((NS_SUCCEEDED(res) && pcharset), "cannot get platform charset"); + if (!(NS_SUCCEEDED(res) && pcharset)) { + NS_WARNING("cannot get platform charset"); + } if(NS_SUCCEEDED(res) && pcharset) { res = pcharset->GetCharset(kPlatformCharsetSel_FileName, mFSCharset); }