[EMAIL PROTECTED] wrote:
Hi
Thanks for your response, here are some more details:
Platform: Solaris
Xalan Version: 1.9
Xerces Version: 1.6
Compiler: SUNWspro6.2
I suspected you were using the Sun compiler. There is a defect in the
compiler's C++ run-time library that returns bogus data when using
instances of istream-derived classes. There is a patch you can apply
from Sun, and you will find a reference to it in this Jira issue:
http://issues.apache.org/jira/browse/XALANC-197
If you go to the Sun bug report, you'll find the following problem:
4466915 istream::read() reads the first input character twice
You can confirm this is the problem by reading the bytes from the
isstream instance and comparing them to the bytes the isstream is wrapping.
Dave