CopyASCIItoUCS2(nsLiteralCString(temp), aReturn);
CopyASCIItoUCS2(nsDependentCString(temp), aReturn);
nsDOMException::ToString(nsAWritableString& aReturn){  static const char defaultMsg[] = "<no message>";  static const char defaultLocation[] = "<unknown>";  static const char defaultName[] = "<unknown>";  static const char format[] =    "[Exception... \"%s\"  code: \"%d\" nsresult: \"0x%x (%s)\"  location: \"%s\"]";    const char* msg = mMessage ? mMessage : defaultMsg;  const char* location = mLocation ? mLocation : defaultLocation;  const char* resultName = mName ? mName : defaultName;  PRUint32 code;  GetCode(&code);  char* temp = PR_smprintf(format, msg, code, mResult, resultName, location);  if (temp) {    CopyASCIItoUCS2(nsLiteralCString(temp), aReturn);    PR_smprintf_free(temp);  }  return NS_OK;}