Bug 422079 Plugin names need to be converted to Unicode r+sr=jst, b1.9=jst
authormasayuki@d-toybox.com
Mon, 17 Mar 2008 14:58:59 -0700
changeset 13198 770b713c9334abbe10121865740fbbe80060fcc9
parent 13197 10bb3ee22095a0cbfaf60a9e5a5533210c0cd1c0
child 13199 9b6da3fbf15ae2e9a30c5a5d6d05a21e5080136b
push idunknown
push userunknown
push dateunknown
bugs422079
milestone1.9b5pre
Bug 422079 Plugin names need to be converted to Unicode r+sr=jst, b1.9=jst
modules/plugin/base/src/nsPluginHostImpl.cpp
--- a/modules/plugin/base/src/nsPluginHostImpl.cpp
+++ b/modules/plugin/base/src/nsPluginHostImpl.cpp
@@ -987,16 +987,17 @@ nsresult nsPluginTag::EnsureMembersAreUT
   // should be encoded in the standard plain text file encoding for this system.
   // XXX should we add kPlatformCharsetSel_PluginResource?
   rv = pcs->GetCharset(kPlatformCharsetSel_PlainTextInFile, charset);
   NS_ENSURE_SUCCESS(rv, rv);
   if (!charset.LowerCaseEqualsLiteral("utf-8")) {
     rv = ccm->GetUnicodeDecoderRaw(charset.get(), getter_AddRefs(decoder));
     NS_ENSURE_SUCCESS(rv, rv);
 
+    ConvertToUTF8(decoder, mName);
     ConvertToUTF8(decoder, mDescription);
     for (PRUint32 i = 0; i < mMimeDescriptionArray.Length(); ++i) {
       ConvertToUTF8(decoder, mMimeDescriptionArray[i]);
     }
   }
   return NS_OK;
 }