mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 18:24:02 +00:00
Bug 1466471 - Part 6: Import patch to fix case conversion bug. r=Waldo
This commit is contained in:
parent
19d00748a5
commit
7f4e8b545f
41
intl/icu-patches/bug-1466471-case-conversion-bugfix.diff
Normal file
41
intl/icu-patches/bug-1466471-case-conversion-bugfix.diff
Normal file
@ -0,0 +1,41 @@
|
||||
https://ssl.icu-project.org/trac/ticket/13851
|
||||
|
||||
Index: source/common/ucase.cpp
|
||||
===================================================================
|
||||
--- a/intl/icu/source/common/ucase.cpp (Revision 41549)
|
||||
+++ b/intl/icu/source/common/ucase.cpp (Revision 41550)
|
||||
@@ -270,6 +270,7 @@
|
||||
}
|
||||
}
|
||||
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 @@
|
||||
|
||||
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 @@
|
||||
|
||||
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 @@
|
||||
}
|
||||
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)) {
|
@ -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)) {
|
||||
|
@ -70,6 +70,7 @@ for patch in \
|
||||
suppress-warnings.diff \
|
||||
bug-1172609-timezone-recreateDefault.diff \
|
||||
bug-1198952-workaround-make-3.82-bug.diff \
|
||||
bug-1466471-case-conversion-bugfix.diff \
|
||||
; do
|
||||
echo "Applying local patch $patch"
|
||||
patch -d ${icu_dir}/../../ -p1 --no-backup-if-mismatch < ${icu_dir}/../icu-patches/$patch
|
||||
|
Loading…
x
Reference in New Issue
Block a user