From owner-svn-ports-head@freebsd.org Thu Jul 5 16:13:51 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74BC01038AE4; Thu, 5 Jul 2018 16:13:51 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2824B8520D; Thu, 5 Jul 2018 16:13:51 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 093591C3D3; Thu, 5 Jul 2018 16:13:51 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w65GDoQH033487; Thu, 5 Jul 2018 16:13:50 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w65GDonT033486; Thu, 5 Jul 2018 16:13:50 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201807051613.w65GDonT033486@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Thu, 5 Jul 2018 16:13:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473974 - in head/devel/icu: . files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: in head/devel/icu: . files X-SVN-Commit-Revision: 473974 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2018 16:13:51 -0000 Author: jbeich Date: Thu Jul 5 16:13:50 2018 New Revision: 473974 URL: https://svnweb.freebsd.org/changeset/ports/473974 Log: devel/icu: fix toLocaleLowerCase() after r473551 PR: 229359 Obtained from: upstream (ICU 63.1) Added: head/devel/icu/files/patch-r41550 (contents, props changed) Modified: head/devel/icu/Makefile (contents, props changed) Modified: head/devel/icu/Makefile ============================================================================== --- head/devel/icu/Makefile Thu Jul 5 15:23:15 2018 (r473973) +++ head/devel/icu/Makefile Thu Jul 5 16:13:50 2018 (r473974) @@ -3,7 +3,7 @@ PORTNAME= icu DISTVERSION= 62_1 -PORTREVISION?= 0 # keep for icu-lx +PORTREVISION?= 1 # keep for icu-lx PORTEPOCH?= 1 CATEGORIES?= devel MASTER_SITES= http://download.icu-project.org/files/icu4c/${PORTVERSION}/ \ Added: head/devel/icu/files/patch-r41550 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/icu/files/patch-r41550 Thu Jul 5 16:13:50 2018 (r473974) @@ -0,0 +1,77 @@ +https://ssl.icu-project.org/trac/ticket/13851 + +--- common/ucase.cpp.orig 2018-06-21 09:39:23 UTC ++++ common/ucase.cpp +@@ -270,6 +270,7 @@ ucase_addCaseClosure(UChar32 c, const USetAdder *sa) { + } + } + if(HAS_SLOT(excWord, UCASE_EXC_DELTA)) { ++ pe=pe0; + int32_t delta; + GET_SLOT_VALUE(excWord, UCASE_EXC_DELTA, pe, delta); + sa->add(sa->set, (excWord&UCASE_EXC_DELTA_IS_NEGATIVE)==0 ? c+delta : c-delta); +@@ -1167,7 +1168,7 @@ ucase_toFullLower(UChar32 c, + + if(HAS_SLOT(excWord, UCASE_EXC_DELTA) && UCASE_IS_UPPER_OR_TITLE(props)) { + int32_t delta; +- GET_SLOT_VALUE(excWord, UCASE_EXC_DELTA, pe, delta); ++ GET_SLOT_VALUE(excWord, UCASE_EXC_DELTA, pe2, delta); + return (excWord&UCASE_EXC_DELTA_IS_NEGATIVE)==0 ? c+delta : c-delta; + } + if(HAS_SLOT(excWord, UCASE_EXC_LOWER)) { +@@ -1261,7 +1262,7 @@ toUpperOrTitle(UChar32 c, + + if(HAS_SLOT(excWord, UCASE_EXC_DELTA) && UCASE_GET_TYPE(props)==UCASE_LOWER) { + int32_t delta; +- GET_SLOT_VALUE(excWord, UCASE_EXC_DELTA, pe, delta); ++ GET_SLOT_VALUE(excWord, UCASE_EXC_DELTA, pe2, delta); + return (excWord&UCASE_EXC_DELTA_IS_NEGATIVE)==0 ? c+delta : c-delta; + } + if(!upperNotTitle && HAS_SLOT(excWord, UCASE_EXC_TITLE)) { +@@ -1469,7 +1470,7 @@ ucase_toFullFolding(UChar32 c, + } + if(HAS_SLOT(excWord, UCASE_EXC_DELTA) && UCASE_IS_UPPER_OR_TITLE(props)) { + int32_t delta; +- GET_SLOT_VALUE(excWord, UCASE_EXC_DELTA, pe, delta); ++ GET_SLOT_VALUE(excWord, UCASE_EXC_DELTA, pe2, delta); + return (excWord&UCASE_EXC_DELTA_IS_NEGATIVE)==0 ? c+delta : c-delta; + } + if(HAS_SLOT(excWord, UCASE_EXC_FOLD)) { +--- test/intltest/strcase.cpp.orig 2018-06-21 09:38:41 UTC ++++ test/intltest/strcase.cpp +@@ -68,6 +68,7 @@ class StringCaseTest: public IntlTest { (public) + void TestBug13127(); + void TestInPlaceTitle(); + void TestCaseMapEditsIteratorDocs(); ++ void TestCaseMapGreekExtended(); + + private: + void assertGreekUpper(const char16_t *s, const char16_t *expected); +@@ -113,6 +114,7 @@ StringCaseTest::runIndexedTest(int32_t index, UBool ex + TESTCASE_AUTO(TestInPlaceTitle); + #endif + TESTCASE_AUTO(TestCaseMapEditsIteratorDocs); ++ TESTCASE_AUTO(TestCaseMapGreekExtended); + TESTCASE_AUTO_END; + } + +@@ -1683,6 +1685,19 @@ void StringCaseTest::TestCaseMapEditsIteratorDocs() { + expectedSrcCoarseStringIndices[destIndex], + coarseChangesIterator.sourceIndexFromDestinationIndex(destIndex, status)); + } ++} ++ ++void StringCaseTest::TestCaseMapGreekExtended() { ++ // Ticket 13851 ++ UnicodeString s(u"\u1F80\u1F88\u1FFC"); ++ UnicodeString result(s); ++ result.toLower(Locale::getRoot()); ++ assertEquals(u"lower", u"\u1F80\u1F80\u1FF3", result); ++#if !UCONFIG_NO_BREAK_ITERATION ++ result = s; ++ result.toTitle(nullptr, Locale::getRoot()); ++ assertEquals(u"title", u"\u1F88\u1F80\u1FF3", result); ++#endif + } + + //#endif