source: npl/overig/libvmime/vmime-mixed-qp-in-parameter.diff @ c5c522c

gcc484ntopperl-5.22
Last change on this file since c5c522c was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 882 bytes
  • svn/src/parameter.cpp

     
    239239                        {
    240240                                value << t.getWholeBuffer();
    241241
    242                                 if (!foundCharsetChunk)
    243                                         ch = t.getWordAt(0)->getCharset();
     242                                if (!foundCharsetChunk) {
     243                                        // this is still wrong. each word can have it's
     244                                        // own charset, and can be mixed (eg. iso-8859-1
     245                                        // and iso-2022-jp), but very unlikely.
     246                                        // real fix is to have parameters store a
     247                                        // vmime::text in stead of a vmime::word in
     248                                        // m_value.  but that changes the interface
     249                                        for (size_t i = 0; i < t.getWordCount(); i++) {
     250                                                if (t.getWordAt(i)->getCharset() != ch && ch == charsets::US_ASCII) {
     251                                                        ch = t.getWordAt(i)->getCharset();
     252                                                        break;
     253                                                }
     254                                        }
     255                                               
     256                                }
    244257                        }
    245258                }
    246259        }
Note: See TracBrowser for help on using the repository browser.