[ https://issues.apache.org/jira/browse/XERCESC-2132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16340749#comment-16340749 ]
Andreas Krantz commented on XERCESC-2132: ----------------------------------------- I assume there are some test cases using u"" for uint16_t. Those test fail when building with wchar_t instead because there is no auto conversion from L"" to u"" or U"". Because of this a reinterpret cast to XMLCh is needed to make it work in any case. > cmake: Add the ability to force the specific XMLCh type to use > -------------------------------------------------------------- > > Key: XERCESC-2132 > URL: https://issues.apache.org/jira/browse/XERCESC-2132 > Project: Xerces-C++ > Issue Type: Improvement > Components: Build > Affects Versions: 3.2.0 > Reporter: Roger Leigh > Assignee: Roger Leigh > Priority: Major > > Currently the CMake build default to a 16-bit integer type. It will use > char16_t where available, and fall back to wchar_t on Windows when available. > This means that old Visual Studio versions will use wchar_t while newer ones > use char16_t, but there are cases where selection of a specific XMLCh type is > desirable, to force the use of wchar_t e.g. for compatibility reasons. > > Add an option to select a specific XMLCh type, overriding the default checks > and fallbacks. > > Also, check that the autotools build behaves the same way. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org