These samples use the C++ "endl" method which puts out a newline in the local...
These samples use the C++ "endl" method which puts out a newline in the local code page, not necessarily the requested output encoding. For example, if you request UTF-16 on an ASCII machine, these two sample programs put out x'0a' instead of x'000a' in two spots of the output. The fix was minor and involved transcoding the newline and then manually flushing the output instead of using the endl method to do the same thing. The change was only made for the two "endl" calls that generate standard output, not calls that output errors messages since they are shown in the local code page. Patches from David McCreedy. And other modification for consistent help display and return code across samples. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173135 13f79535-47bb-0310-9956-ffa450edef68
Loading
Please register or sign in to comment