> The great questions are:
> a) why does mbstowcs(..) fail on 4-STABLE bu not on 5.1 ?
> b) [more important] how to correctly recover from this error path ?
> I do not ocnsider it a FreeBSD specific problem but simply an
> unhandled error path in xalan.
It's strange that mbstowcs() would fail, but I seem to recall this was a
problem in previous attempts to port Xerces-C to FreeBSD.
However, I disagree this is an unhandled error path in Xalan. We should
make XalanTransformer::initialize() exception-safe, but it _should_
propagate any exception thrown, since there's no clean way to handle this
in the library. Callers must be prepared to handle exceptions from
XalanTransformer::initialize() and we should make sure it's documented that
way.
Dave