Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2038

Problems with TranscodeToStr

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1, 3.1.2, 3.1.3, 3.1.4
    • 3.2.0
    • DOM
    • None
    • bash-4.1$ uname -a
      Linux sadbprodcompile1 2.6.32-431.23.3.el6.x86_64 #1 SMP Wed Jul 16 06:12:23 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

    Description

      This is actually 3 reports in one (but hey, sue me

      1. TranscodeToStr fails of the XMLCh-string contains just one character when encoding is "WCHAR_T" or "UTF-32" (i.e. types larger than XMLCh) and you get "invalid-multibyte-character"

      2. In the constructor of TranscodeToStr, the result (or 'failReason') from makeNewTranscoderFrom is never checked and if it fails the ::transcode-function dumps miserably. An exception would be preffered

      3. It is not documented why the parameter 'manager' is not used (in the call to makeNewTranscoderFrom instead and not to the ::transcode-function) but the (global) fMemoryManager is used instead

      Attachments

        Activity

          People

            scantor Scott Cantor
            kristone@hotmail.com Old Account That Somhow Should Be Erased
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: