| Index: third_party/icu38/source/common/ucnv.c
|
| ===================================================================
|
| --- third_party/icu38/source/common/ucnv.c (revision 10949)
|
| +++ third_party/icu38/source/common/ucnv.c (working copy)
|
| @@ -1528,11 +1528,14 @@
|
| cnv->toULength=0;
|
|
|
| /* call the callback function */
|
| + if(cnv->toUCallbackReason==UCNV_ILLEGAL && *err==U_INVALID_CHAR_FOUND) {
|
| + cnv->toUCallbackReason = UCNV_UNASSIGNED;
|
| + }
|
| cnv->fromCharErrorBehaviour(cnv->toUContext, pArgs,
|
| cnv->invalidCharBuffer, errorInputLength,
|
| - (*err==U_INVALID_CHAR_FOUND || *err==U_UNSUPPORTED_ESCAPE_SEQUENCE) ?
|
| - UCNV_UNASSIGNED : UCNV_ILLEGAL,
|
| + cnv->toUCallbackReason,
|
| err);
|
| + cnv->toUCallbackReason = UCNV_ILLEGAL; /* reset to default value */
|
|
|
| /*
|
| * loop back to the offset handling
|
|
|