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

Wrong unicode character in PosixFileMgr::isRelative

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.4
    • Fix Version/s: 3.2.0
    • Component/s: Utilities
    • Labels:
      None
    • Environment:
      iSeries / non-ASCII-systems

      Description

      In the PosixFileMgr.cpp the function PosixFileMgr::isRelative checks with

      return toCheck[0] != XMLCh('/');
      

      With other character sets (e.g. EBCDIC) the code will fail.
      The correct way would be to check with "chForwardSlash":

      return toCheck[0] != chForwardSlash;
      

        Attachments

          Activity

            People

            • Assignee:
              scantor Scott Cantor
              Reporter:
              Victor.Horvath Victor Horvath
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: