From 5d4eb5c9189e2ed9d317d60e119ec5c401fa1021 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Thu, 11 Oct 2012 18:10:04 +0000 Subject: [PATCH] ICU-9567 Fixed a bad condition for Latin 1 checking updated in the previous change. X-SVN-Rev: 32599 --- icu4c/source/i18n/ucol.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/i18n/ucol.cpp b/icu4c/source/i18n/ucol.cpp index ffe756ae241..b13c8747342 100644 --- a/icu4c/source/i18n/ucol.cpp +++ b/icu4c/source/i18n/ucol.cpp @@ -9034,8 +9034,8 @@ ucol_strcollUTF8( } } else { // Lead byte of Latin 1 character is 0x00 - 0xC3 - bSawNonLatin1 = (source && (sourceLength != 0) && ((uint8_t)*source > 0xc3 && *source < 0)); - bSawNonLatin1 |= (target && (targetLength != 0) && ((uint8_t)*target > 0xc3 && *target < 0)); + bSawNonLatin1 = (source && (sourceLength != 0) && (uint8_t)*source > 0xc3); + bSawNonLatin1 |= (target && (targetLength != 0) && (uint8_t)*target > 0xc3); } UCollationResult returnVal; -- 2.40.0