From: Noam P. <npo...@us...> - 2011-10-01 16:09:03
|
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 |