>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:

Georg> Currently we are doing something illegal if iconv fails
Georg> (creating a vector from two pointers, where the end is before
Georg> the start). That throws a std::bad_alloc exception in my
Georg> environment. What do we want to do? The attached patch simply
Georg> returns an empty string, but I am not sure whether that is what
Georg> we want. We could also throw an exception and handle that in
Georg> the caller. What do others think?

I still think we want to translate to LaTeX macros (xml entities) the
caracters that do not have a good match in the output charset. To be
able to do that, I am not sure what is required, but an exception
seems reasonable.

However, while I can see how this works in a char-by-char conversion,
it seems more complicated for a complete string. I guess though that
we do mainly char-by-char in cases of interest.

JMarc

Reply via email to