int                     status;    INTL_CharSetInfo csi = nsnull; PRUint16         old_csid = INTL_GetCSIDocCSID(csi);  if (input_charset) { msd->lastcsid = INTL_CharSetNameToID((char*) input_charset); } else { msd->lastcsid = 0; } if (output_charset) { msd->outcsid = INTL_CharSetNameToID((char*) output_charset); } else { msd->outcsid = 0; } INTL_SetCSIDocCSID(csi, msd->lastcsid);  status = mime_convert_charset (input_autodetect, input_line, input_length, input_charset, output_charset, output_ret, output_size_ret, stream_closure); INTL_SetCSIDocCSID(csi, old_csid); return status;
return mime_convert_charset (input_autodetect, input_line, input_length, input_charset, output_charset, output_ret, output_size_ret, stream_closure);
mime_insert_html_convert_charset (const PRBool input_autodetect, const char *input_line,                                   PRInt32 input_length, const char *input_charset,                                   const char *output_charset,                                  char **output_ret, PRInt32 *output_size_ret,                                  void *stream_closure){  struct mime_stream_data *msd = (struct mime_stream_data *) stream_closure;  int                     status;  // RICHIE SHERRY - I think this should go away, but I don't want to remove it without  // being around for the I18N folks  INTL_CharSetInfo csi = nsnull;  PRUint16         old_csid = INTL_GetCSIDocCSID(csi);  if (input_charset)   {    msd->lastcsid = INTL_CharSetNameToID((char*) input_charset);  }   else   {    msd->lastcsid = 0;  }  if (output_charset)   {    msd->outcsid = INTL_CharSetNameToID((char*) output_charset);  }   else   {    msd->outcsid = 0;  }  INTL_SetCSIDocCSID(csi, msd->lastcsid);  status = mime_convert_charset (input_autodetect, input_line, input_length,                                 input_charset, output_charset,                                 output_ret, output_size_ret,                                 stream_closure);  INTL_SetCSIDocCSID(csi, old_csid);  return status;}