ICU-506 ISO2022 converter not resetting after flush.
X-SVN-Rev: 5211
This commit is contained in:
parent
eb541f3c45
commit
4d64f8658a
@ -873,7 +873,7 @@ MBCS_FROM_UCHAR32_ISO2022(UConverterSharedData* sharedData,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* This inline function replicates code in _MBCSSingleFromUChar32() function in ucnvmbcs.c
|
/* This inline function replicates code in _MBCSSingleFromUChar32() function in ucnvmbcs.c
|
||||||
* any future change in _MBCSFromUChar32() function should be reflected in
|
* any future change in _MBCSSingleFromUChar32() function should be reflected in
|
||||||
* this macro
|
* this macro
|
||||||
*/
|
*/
|
||||||
U_INLINE void
|
U_INLINE void
|
||||||
@ -941,6 +941,9 @@ T_UConverter_getNextUChar_ISO_2022(UConverterToUnicodeArgs* args,
|
|||||||
err);
|
err);
|
||||||
}while(args->source < args->sourceLimit);
|
}while(args->source < args->sourceLimit);
|
||||||
|
|
||||||
|
if( (args->source == args->sourceLimit) && args->flush){
|
||||||
|
_ISO2022Reset(args->converter,UCNV_RESET_TO_UNICODE);
|
||||||
|
}
|
||||||
return 0xffff;
|
return 0xffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1031,7 +1034,11 @@ T_UConverter_toUnicode_ISO_2022(UConverterToUnicodeArgs *args,
|
|||||||
}while(args->source < args->sourceLimit);
|
}while(args->source < args->sourceLimit);
|
||||||
|
|
||||||
myData->isFirstBuffer=FALSE;
|
myData->isFirstBuffer=FALSE;
|
||||||
}
|
if( (args->source == args->sourceLimit) && args->flush){
|
||||||
|
_ISO2022Reset(args->converter,UCNV_RESET_FROM_UNICODE);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
U_CFUNC void
|
U_CFUNC void
|
||||||
T_UConverter_toUnicode_ISO_2022_OFFSETS_LOGIC(UConverterToUnicodeArgs* args,
|
T_UConverter_toUnicode_ISO_2022_OFFSETS_LOGIC(UConverterToUnicodeArgs* args,
|
||||||
@ -1135,7 +1142,9 @@ T_UConverter_toUnicode_ISO_2022_OFFSETS_LOGIC(UConverterToUnicodeArgs* args,
|
|||||||
myOffset += args->source - sourceStart;
|
myOffset += args->source - sourceStart;
|
||||||
|
|
||||||
}while(mySourceLimit != args->sourceLimit);
|
}while(mySourceLimit != args->sourceLimit);
|
||||||
|
if( (args->source == args->sourceLimit) && args->flush){
|
||||||
|
_ISO2022Reset(args->converter,UCNV_RESET_TO_UNICODE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UCNV_TableStates_2022
|
UCNV_TableStates_2022
|
||||||
|
Loading…
Reference in New Issue
Block a user