diff --git a/icu4c/source/i18n/ucol_tok.c b/icu4c/source/i18n/ucol_tok.c index e5e6b3a3095..61ab70ccd8a 100644 --- a/icu4c/source/i18n/ucol_tok.c +++ b/icu4c/source/i18n/ucol_tok.c @@ -483,6 +483,10 @@ const UChar *ucol_tok_parseNextToken(UColTokenParser *src, } ch = *(++(src->current)); /*pattern[++index]; */ + if(ch == 0x0027) { + *src->extraCurrent++ = ch; + inQuote = FALSE; + } break; /* '@' is french only if the strength is not currently set */ @@ -523,7 +527,7 @@ const UChar *ucol_tok_parseNextToken(UColTokenParser *src, } if(wasInQuote) { - if(ch != 0x27 || newCharsLen == 1) { + if(ch != 0x27) { *src->extraCurrent++ = ch; } if(src->extraCurrent == src->extraEnd) {