From: Ming C. <cim...@ya...> - 2011-10-10 05:13:25
|
Hi Noam, Thanks for the new release, 1.3.0. It unified the line endings to 0A 00 (or 00 0A) for all UTF16 format files. It meets my current requirements although it would be better to have the 00 0D 00 0A (or 0D 00 0A 00) line ending on Windows (I understand that is controlled by the C runtime). Best regards, Ming ________________________________ From: Noam Postavsky <npo...@us...> To: Ming Chen <cim...@ya...>; xml...@li... Sent: Sunday, October 2, 2011 12:08 AM Subject: Re: [Xmlstar-devel] Line ending issue for unicode XML files Ming Chen <cim...@ya...> writes: > I basically understood what has happened. So is there a good solution for this? > I didn't get the picture of what you said about mingw and binary > mode... There is a semi-good solution: switch stdout to binary (as opposed to text) mode so that the ascii carriage returns won't be added. Ideally I would want to switch stdout to UTF16-text mode but this is only possible with a newer version of the C runtime. I don't want to use this newer version because it is not guaranteed to be installed on Windows so it would have to be packaged with XMLStarlet, and also it's not supported by mingw (gcc for Windows). Noam |