Resolves: rhbz#1106793 bad 2-digit year test case

Time warped to year 2034 ...
http://sourceforge.net/p/icu/mailman/message/32443311/
This commit is contained in:
Eike Rathke 2014-06-13 19:47:17 +02:00
parent 8cec75bfb0
commit 3320ff38f2
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,13 @@
In the year 2034 ...
http://sourceforge.net/p/icu/mailman/message/32443311/
--- icu.orig/source/test/intltest/dtfmttst.cpp 2013-10-04 22:48:00.000000000 +0200
+++ icu/source/test/intltest/dtfmttst.cpp 2014-06-13 19:34:40.611299572 +0200
@@ -1129,7 +1129,7 @@
return;
}
parse2DigitYear(fmt, "5/6/17", date(117, UCAL_JUNE, 5));
- parse2DigitYear(fmt, "4/6/34", date(34, UCAL_JUNE, 4));
+ parse2DigitYear(fmt, "4/6/34", date(134, UCAL_JUNE, 4));
}
// -------------------------------------

View File

@ -1,6 +1,6 @@
Name: icu Name: icu
Version: 52.1 Version: 52.1
Release: 2%{?dist} Release: 3%{?dist}
Summary: International Components for Unicode Summary: International Components for Unicode
Group: Development/Tools Group: Development/Tools
License: MIT and UCD and Public Domain License: MIT and UCD and Public Domain
@ -16,6 +16,7 @@ Patch3: icu.7601.Indic-ccmp.patch
Patch4: icu.9948.mlym-crash.patch Patch4: icu.9948.mlym-crash.patch
Patch5: gennorm2-man.patch Patch5: gennorm2-man.patch
Patch6: icuinfo-man.patch Patch6: icuinfo-man.patch
Patch7: icu-testtwodigityear.patch
%description %description
Tools and utilities for developing with icu. Tools and utilities for developing with icu.
@ -64,6 +65,7 @@ BuildArch: noarch
%patch4 -p1 -b .icu9948.mlym-crash.patch %patch4 -p1 -b .icu9948.mlym-crash.patch
%patch5 -p1 -b .gennorm2-man.patch %patch5 -p1 -b .gennorm2-man.patch
%patch6 -p1 -b .icuinfo-man.patch %patch6 -p1 -b .icuinfo-man.patch
%patch7 -p1 -b .icu-testtwodigityear.patch
%build %build
cd source cd source
@ -172,6 +174,9 @@ make %{?_smp_mflags} -C source check
%doc source/__docs/%{name}/html/* %doc source/__docs/%{name}/html/*
%changelog %changelog
* Fri Jun 13 2014 Eike Rathke <erack@redhat.com> - 52.1-3
- Resolves: rhbz#1106793 bad 2-digit year test case
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 52.1-2 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 52.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild