Skip to content
Snippets Groups Projects
Commit 4007562c authored by Tinny Ng's avatar Tinny Ng
Browse files

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
parent 8728252f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment