unicode.c: Error handling by unicode_xconvert() breaks string using multibyte (e.g. EUC-JP) and/or stateful (e.g. ISO-2022-*) encoding schemes.
I modified unicode_xconvert() so that it lets converter functions
handle conversion errors and then (if possible) retry to handle
errors by itself. I'm not sure this behaviour is suitable for all implementation of charsets.
That's not going to work. I don't recall offhand what the reason for the current logic is, but there was a specific reason I did this.
If you really need to do it this way, then what you can do is take advantage of struct unicode_info.flags, and define a new flag, then check this flag in unicode_xconvert, and do it this way.
This way you're only touching your own stuff.
pgp00000.pgp
Description: PGP signature
