From 656ec77a10dd36ca66a5c8a1d6ea3e0cf093ed9e Mon Sep 17 00:00:00 2001 From: kgv Date: Sat, 13 Dec 2014 15:00:07 +0300 Subject: [PATCH] 0025608: TKernel, NCollection_UtfIterator - fix iteration of surrogate pairs in UTF-16 --- src/NCollection/NCollection_UtfIterator.lxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NCollection/NCollection_UtfIterator.lxx b/src/NCollection/NCollection_UtfIterator.lxx index 9b0025b64a..9c66c054a1 100755 --- a/src/NCollection/NCollection_UtfIterator.lxx +++ b/src/NCollection/NCollection_UtfIterator.lxx @@ -114,7 +114,7 @@ void NCollection_UtfIterator::readUTF16() if (aChar >= UTF16_SURROGATE_HIGH_START && aChar <= UTF16_SURROGATE_HIGH_END) { - Standard_Utf32Char aChar2 = *myPosition; + const Standard_Utf32Char aChar2 = *myPosNext; // complete the surrogate pair if (aChar2 >= UTF16_SURROGATE_LOW_START && aChar2 <= UTF16_SURROGATE_LOW_END)