[
https://issues.apache.org/jira/browse/XERCESC-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Victor Horvath updated XERCESC-2117:
------------------------------------
Description:
In the PosixFileMgr.cpp the function PosixFileMgr::isRelative checks with
{code}
return toCheck[0] != XMLCh('/');
{code}
With other character sets (e.g. EBCDIC) the code will fail.
The correct way would be to check with "chForwardSlash":
{code}
return toCheck[0] != chForwardSlash;
{code}
was:
In the PosixFileMgr.cpp the function PosixFileMgr::isRelative checks with
{code}
return toCheck[0] != XMLCh('/');
{code}
With other character sets (e.g. EBCDIC) the code will fail.
The correct way would be to check with "chForwardSlash".
{code}
return toCheck[0] != chForwardSlash;
{code}
> Wrong unicode character in PosixFileMgr::isRelative
> ---------------------------------------------------
>
> Key: XERCESC-2117
> URL: https://issues.apache.org/jira/browse/XERCESC-2117
> Project: Xerces-C++
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 3.1.4
> Environment: iSeries / non-ASCII-systems
> Reporter: Victor Horvath
>
> In the PosixFileMgr.cpp the function PosixFileMgr::isRelative checks with
> {code}
> return toCheck[0] != XMLCh('/');
> {code}
> With other character sets (e.g. EBCDIC) the code will fail.
> The correct way would be to check with "chForwardSlash":
> {code}
> return toCheck[0] != chForwardSlash;
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]