[ expat-Bugs-464837 ] Compile with XML_UNICODE not correct

noreply@sourceforge.net noreply@sourceforge.net
Fri Apr 19 19:48:05 2002


Bugs item #464837, was opened at 2001-09-25 11:14
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=464837&group_id=10127

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Compile with XML_UNICODE not correct

Initial Comment:
I am trying to re-compile Expat 1.95.2 on Windows with
XML_UNICODE and XML_UNICODE_WCHAR_T defined.
I am using VC++ 6.0. However, when tested, the Dll
does not pass UTF16 strings out, they still seem to
be UTF8, but improperly terminated.

It seems that I can get it to work properly when
I modify expat.h to change the typedefs for XML_CHAR
and XML_LCHAR from char tp wchar_t, i.e.:

typedef char XML_Char;
typedef char XML_LChar;

turns into

typedef wchar_t XML_Char;
typedef wchar_t XML_LChar;

Karl


----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2001-11-04 08:08

Message:
Logged In: YES 
user_id=290026

I found out that this is not enough to fix it.
I have submitted a patch - see patch # 476931.
This is under Win32, btw.

Karl

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=464837&group_id=10127