Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/core/icu73/ICU-22132.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2024-04-18 15:43:29 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2024-04-18 15:43:29 +0200
commit47e0e4fe0cbecb518765c3ea106e31ac6e7b90ab (patch)
tree9b6dc1bf1c7cdfa703ba3f26566aa6b7c74f50cd /core/icu73/ICU-22132.patch
parente09b1fc2a011ca1a9a9ee48b0021d3edf4b07470 (diff)
added an icu73 shim
Diffstat (limited to 'core/icu73/ICU-22132.patch')
-rw-r--r--core/icu73/ICU-22132.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/core/icu73/ICU-22132.patch b/core/icu73/ICU-22132.patch
new file mode 100644
index 00000000..3b93c920
--- /dev/null
+++ b/core/icu73/ICU-22132.patch
@@ -0,0 +1,25 @@
+diff -u a/i18n/vtzone.cpp a/i18n/vtzone.cpp
+--- a/i18n/vtzone.cpp 2023-07-14 09:05:38.000000000 +0100
++++ b/i18n/vtzone.cpp 2023-07-14 09:05:38.000000000 +0100
+@@ -1735,14 +1735,14 @@
+ }
+ }
+ } else {
+- UnicodeString icutzprop;
+- UVector customProps(nullptr, uhash_compareUnicodeString, status);
++ UVector customProps(uprv_deleteUObject, uhash_compareUnicodeString, status);
+ if (olsonzid.length() > 0 && icutzver.length() > 0) {
+- icutzprop.append(olsonzid);
+- icutzprop.append(u'[');
+- icutzprop.append(icutzver);
+- icutzprop.append(u']');
+- customProps.addElement(&icutzprop, status);
++ LocalPointer<UnicodeString> icutzprop(new UnicodeString(ICU_TZINFO_PROP), status);
++ icutzprop->append(olsonzid);
++ icutzprop->append(u'[');
++ icutzprop->append(icutzver);
++ icutzprop->append(u']');
++ customProps.adoptElement(icutzprop.orphan(), status);
+ }
+ writeZone(writer, *tz, &customProps, status);
+ } \ No newline at end of file