mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
icu: fix timezone stuff for thunderbird
This commit is contained in:
parent
6360fdb863
commit
b33e3c3bc1
2 changed files with 34 additions and 1 deletions
33
srcpkgs/icu/patches/standardize-vtzone-output.patch
Normal file
33
srcpkgs/icu/patches/standardize-vtzone-output.patch
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
Patch-Source: https://github.com/chimera-linux/cports/blob/c48ec38c2d88f6e5962299583a8f862159c89349/main/icu/patches/standardize-vtzone-output.patch
|
||||||
|
https://bugzilla.mozilla.org/show_bug.cgi?id=1790071
|
||||||
|
https://unicode-org.atlassian.net/browse/ICU-22132
|
||||||
|
needed for thunderbird
|
||||||
|
--
|
||||||
|
diff --git a/intl/icu/source/i18n/vtzone.cpp b/intl/icu/source/i18n/vtzone.cpp
|
||||||
|
--- a/source/i18n/vtzone.cpp
|
||||||
|
+++ b/source/i18n/vtzone.cpp
|
||||||
|
@@ -1735,14 +1735,17 @@ VTimeZone::write(VTZWriter& writer, UErr
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} 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);
|
||||||
|
+ if (U_FAILURE(status)) {
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+ icutzprop->append(olsonzid);
|
||||||
|
+ icutzprop->append(u'[');
|
||||||
|
+ icutzprop->append(icutzver);
|
||||||
|
+ icutzprop->append(u']');
|
||||||
|
+ customProps.adoptElement(icutzprop.orphan(), status);
|
||||||
|
}
|
||||||
|
writeZone(writer, *tz, &customProps, status);
|
||||||
|
}
|
|
@ -3,7 +3,7 @@
|
||||||
# next soname bump.
|
# next soname bump.
|
||||||
pkgname=icu
|
pkgname=icu
|
||||||
version=73.2
|
version=73.2
|
||||||
revision=1
|
revision=2
|
||||||
build_wrksrc=source
|
build_wrksrc=source
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
# use archive data instead of .so data for correct cross-compiling
|
# use archive data instead of .so data for correct cross-compiling
|
||||||
|
|
Loading…
Add table
Reference in a new issue