[jira] [Commented] (XERCESC-2101) Add support for XERCES_XMLCH_T = char16_t

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (XERCESC-2101) Add support for XERCES_XMLCH_T = char16_t

JIRA xerces-c-dev@xml.apache.org

    [ https://issues.apache.org/jira/browse/XERCESC-2101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048915#comment-16048915 ]

Roger Leigh commented on XERCESC-2101:
--------------------------------------

I've tried your patch on the trunk with my cmake support (patch attached).  Unfortunately it's failing here:

{noformat}
[266/343] Building CXX object src\CMakeFiles\xerces-c.dir\xercesc\util\Transcoders\Win32\Win32TransService.cpp.obj
FAILED: src/CMakeFiles/xerces-c.dir/xercesc/util/Transcoders/Win32/Win32TransService.cpp.obj
C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe  /nologo /TP -DHAVE_CONFIG_H -DXERCES_BUILDING_LIBRARY -DXERCES_DLL_NAME=\"xerces-c_3_1d.dll\0\" -Dxerces_c_EXPORTS -I. -IH:\xerces-c\src -Isrc /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /Fosrc\CMakeFiles\xerces-c.dir\xercesc\util\Transcoders\Win32\Win32TransService.cpp.obj /Fdsrc\CMakeFiles\xerces-c.dir\ /FS -c H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp
H:\xerces-c\src\xercesc/util/TransService.hpp(559): warning C4251: 'xercesc_3_1::TranscodeToStr::fString': class 'xercesc_3_1::ArrayJanitor<XMLByte>' needs to have dll-interface to be used by clients of class 'xercesc_3_1::TranscodeToStr'
H:\xerces-c\src\xercesc/util/TransService.hpp(559): note: see declaration of 'xercesc_3_1::ArrayJanitor<XMLByte>'
H:\xerces-c\src\xercesc/util/TransService.hpp(641): warning C4251: 'xercesc_3_1::TranscodeFromStr::fString': class 'xercesc_3_1::ArrayJanitor<XMLCh>' needs to have dll-interface to be used by clients of class 'xercesc_3_1::TranscodeFromStr'
H:\xerces-c\src\xercesc/util/TransService.hpp(641): note: see declaration of 'xercesc_3_1::ArrayJanitor<XMLCh>'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(271): error C2664: 'wchar_t *_wcsupr(wchar_t *)': cannot convert argument 1 from 'XMLCh *' to 'wchar_t
*'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(271): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(289): error C2664: 'wchar_t *_wcsupr(wchar_t *)': cannot convert argument 1 from 'XMLCh *' to 'wchar_t
*'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(289): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(514): error C2664: 'wchar_t *_wcsupr(wchar_t *)': cannot convert argument 1 from 'XMLCh *' to 'wchar_t
*'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(514): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(529): error C2664: 'wchar_t *_wcsupr(wchar_t *)': cannot convert argument 1 from 'XMLCh *' to 'wchar_t
*'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(529): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(333): warning C4996: 'GetVersionExA': was declared deprecated
C:\Program Files (x86)\Windows Kits\8.1\include\um\sysinfoapi.h(433): note: see declaration of 'GetVersionExA'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(569): error C2664: 'int _wcsicmp(const wchar_t *,const wchar_t *)': cannot convert argument 1 from 'const XMLCh *const ' to 'const wchar_t *'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(569): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(577): error C2664: 'int _wcsnicmp(const wchar_t *,const wchar_t *,std::size_t)': cannot convert argument 1 from 'const XMLCh *const ' to 'const wchar_t *'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(577): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(606): error C2664: 'wchar_t *_wcsupr(wchar_t *)': cannot convert argument 1 from 'XMLCh *const ' to 'wchar_t *'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(606): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(611): error C2664: 'wchar_t *_wcslwr(wchar_t *)': cannot convert argument 1 from 'XMLCh *const ' to 'wchar_t *'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(611): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(628): error C2664: 'wchar_t *_wcsupr(wchar_t *)': cannot convert argument 1 from 'XMLCh [1025]' to 'wchar_t *'
H:\xerces-c\src\xercesc\util\Transcoders\Win32\Win32TransService.cpp(628): note: Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
ninja: build stopped: subcommand failed.
{noformat}

> Add support for XERCES_XMLCH_T = char16_t
> -----------------------------------------
>
>                 Key: XERCESC-2101
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2101
>             Project: Xerces-C++
>          Issue Type: Improvement
>            Reporter: Vemund Handeland
>            Priority: Minor
>         Attachments: 0001-cmake-Check-for-char16_t.patch, 0002-autoconf-Check-for-char16_t.patch, char16_t.diff
>
>
> Attached diff contains the required changes for msvc. The diff is from my local git repo created from the 3.1.4 release.
> Added new macro XERCES_USE_CHAR16_T.
> User can enable the support by define this macro both when building the library and her own application.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...