(*cSet != CR) && (*cSet != LF) && (*cSet != '"') )
(*cSet != nsCRT::CR) && (*cSet != nsCRT::LF) && (*cSet != '"') )
ResetChannelCharset(MimeObject *obj) {   if (obj->options && obj->options->stream_closure &&       obj->options->default_charset && obj->headers )   {     mime_stream_data  *msd = (mime_stream_data *) (obj->options->stream_closure);     char *ct = MimeHeaders_get (obj->headers, HEADER_CONTENT_TYPE, PR_FALSE, PR_FALSE);     if ( (ct) && (msd) && (msd->channel) )     {       char *ptr = PL_strstr(ct, "charset=");       if (ptr)      {        // First, setup the channel!        msd->channel->SetContentType(ct);         // Second, if this is a Save As operation, then we need to convert        // to override the output charset!        mime_stream_data  *msd = GetMSD(obj->options);        if ( (msd) && (msd->format_out == nsMimeOutput::nsMimeMessageSaveAs) )        {          // Extract the charset alone          char  *cSet = nsnull;          if (*(ptr+8) == '"')            cSet = nsCRT::strdup(ptr+9);          else            cSet = nsCRT::strdup(ptr+8);          if (cSet)          {            char *ptr2 = cSet;            while ( (*cSet) && (*cSet != ' ') && (*cSet != ';') &&                     (*cSet != CR) && (*cSet != LF) && (*cSet != '"') )              ptr2++;                        if (*cSet) {              PR_FREEIF(obj->options->default_charset);              obj->options->default_charset = nsCRT::strdup(cSet);              obj->options->override_charset = PR_TRUE;            }            PR_FREEIF(cSet);          }        }      }      PR_FREEIF(ct);     }   } }