IXMLWriter.h documentation

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

IXMLWriter.h documentation

Post by CuteAlien »

In IXMLWriter.h the documentation reads:

Code: Select all

This XML Writer only writes UTF-16 xml files
That's only correct on Windows and wrong on Linux as far as I know. Which is sad as it's just what I needed right now ;-) (Not hard to change though, I'm considering right now if I should be doing that). I guess the correct sentence would be something like:

Code: Select all

This XML Writer writes xml files always in the platform dependent wchar_t format and sets the xml-encoding correspondingly.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Re: IXMLWriter.h documentation

Post by rogerborg »

CuteAlien wrote:In IXMLWriter.h the documentation reads:

Code: Select all

This XML Writer only writes UTF-16 xml files
That's only correct on Windows
It's not even correct on Windows; it writes UCS-2, not UTF-16.

I've updated the comment (thanks) but post 1.5 I would like to have a look at our use of wchar_t and see if it will be practical to switch to an explicit UCS-2 type intead.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply