diff --git a/mozilla/extensions/transformiix/source/xslt/txXMLOutput.cpp b/mozilla/extensions/transformiix/source/xslt/txXMLOutput.cpp index c3dd574fa5e..c5b9dc4c3f6 100644 --- a/mozilla/extensions/transformiix/source/xslt/txXMLOutput.cpp +++ b/mozilla/extensions/transformiix/source/xslt/txXMLOutput.cpp @@ -264,10 +264,10 @@ void txXMLOutput::closeStartTag(MBool aUseEmptyElementShorthand) txOutAttr* att; while ((att = (txOutAttr*)iter.next())) { *mOut << SPACE; - const PRUnichar* attrVal; - att->mName.mLocalName->GetUnicode(&attrVal); + nsCAutoString attrVal; + att->mName.mLocalName->ToUTF8String(attrVal); // XXX consult the XML spec what we really wanna do here - *mOut << NS_ConvertUCS2toUTF8(nsDependentString(attrVal)).get(); + *mOut << attrVal.get(); if (!att->mShorthand) { *mOut << EQUALS << DOUBLE_QUOTE; printWithXMLEntities(att->mValue, MB_TRUE);