[Git][haskell-team/DHG_packages][master] text-icu: Fix testsuite failure with ICU 76
Ilias Tsitsimpis (@iliastsi)
gitlab at salsa.debian.org
Fri Mar 21 15:12:11 GMT 2025
Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
c09d151e by Ilias Tsitsimpis at 2025-03-21T17:10:44+02:00
text-icu: Fix testsuite failure with ICU 76
- - - - -
3 changed files:
- p/haskell-text-icu/debian/changelog
- + p/haskell-text-icu/debian/patches/fix-icu-76
- + p/haskell-text-icu/debian/patches/series
Changes:
=====================================
p/haskell-text-icu/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-text-icu (0.8.0.5-2) unstable; urgency=medium
+
+ * Fix testsuite failure with ICU 76 (Closes: #1092316)
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org> Fri, 21 Mar 2025 17:10:34 +0200
+
haskell-text-icu (0.8.0.5-1) unstable; urgency=medium
* Declare compliance with Debian policy 4.7.0
=====================================
p/haskell-text-icu/debian/patches/fix-icu-76
=====================================
@@ -0,0 +1,42 @@
+From 921287b296ff781051c7bff45bb9adb04ee3a6a7 Mon Sep 17 00:00:00 2001
+From: Andreas Abel <andreas.abel at ifi.lmu.de>
+Date: Sat, 15 Mar 2025 12:43:12 +0100
+Subject: [PATCH] Fix #108: make test that failed with ICU 76 more robust
+
+This removes the timezone string which apparently has changed from
+"GMT+1" (ICU < 76) to "MEZ" (ICU 76) (German rendering).
+
+I anyway do not understand why the timezone is printed in the
+`LongFormatStyle`, because the ICU documentation suggests it should
+only be printed in the `FullFormatStyle`.
+
+https://github.com/unicode-org/icu/blob/72406ed78a95eec2be3d19ef7e7ce2c2cca7dd5e/icu4c/source/i18n/unicode/udat.h#L128-L130
+
+ * <li> UDAT_LONG is longer, such as January 12, 1952 or 3:30:32pm
+ * <li> UDAT_FULL is pretty completely specified, such as
+ * Tuesday, April 12, 1952 AD or 3:30:42pm PST.
+
+Anyway switching to `MediumFormatStyle` solves the problem at hand.
+---
+ tests/Properties.hs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+Index: b/tests/Properties.hs
+===================================================================
+--- a/tests/Properties.hs
++++ b/tests/Properties.hs
+@@ -190,12 +190,12 @@ testCases =
+ (12.5 :: Double) ~?= "12.50 US dollars"
+
+ ,do
+- dfDe <- I.standardDateFormatter I.LongFormatStyle I.LongFormatStyle
++ dfDe <- I.standardDateFormatter I.MediumFormatStyle I.LongFormatStyle
+ (Locale "de_DE") ""
+ c <- cal "CET" 2000 00 01 02 03 00
+ return $ I.formatCalendar dfDe (Cal.add c [(Cal.Hour, 25), (Cal.Second, 65)])
+ `ioEq`
+- "2. Januar 2000 um 03:04:05 GMT+1"
++ "2. Januar 2000 um 03:04:05"
+
+ ,do
+ dfAt <- I.standardDateFormatter I.LongFormatStyle I.LongFormatStyle
=====================================
p/haskell-text-icu/debian/patches/series
=====================================
@@ -0,0 +1 @@
+fix-icu-76
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/c09d151ee649a45230952f7645b1b7d856dfd1f5
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/c09d151ee649a45230952f7645b1b7d856dfd1f5
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20250321/88ad6b9f/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list