summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2012-06-07 00:37:19 +0000
committerMike Gilbert <floppym@gentoo.org>2012-06-07 00:37:19 +0000
commitf472f7db3ed81deb6457422149553ddea7c9bce8 (patch)
tree7358ed0244f6b595c7c2445f1b2110acee106dd2 /dev-libs/icu/files
parentVersion bump to development release in order to get rid of the media-libs/lib... (diff)
downloadgentoo-2-f472f7db3ed81deb6457422149553ddea7c9bce8.tar.gz
gentoo-2-f472f7db3ed81deb6457422149553ddea7c9bce8.tar.bz2
gentoo-2-f472f7db3ed81deb6457422149553ddea7c9bce8.zip
Drop old per Arfrever.
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/icu/files')
-rw-r--r--dev-libs/icu/files/icu-4.8.1-fix_nan.patch68
1 files changed, 0 insertions, 68 deletions
diff --git a/dev-libs/icu/files/icu-4.8.1-fix_nan.patch b/dev-libs/icu/files/icu-4.8.1-fix_nan.patch
deleted file mode 100644
index 971d66d8bc30..000000000000
--- a/dev-libs/icu/files/icu-4.8.1-fix_nan.patch
+++ /dev/null
@@ -1,68 +0,0 @@
-https://bugs.gentoo.org/show_bug.cgi?id=380827
-http://bugs.icu-project.org/trac/ticket/8561
-http://bugs.icu-project.org/trac/changeset/30689
-http://code.google.com/p/chromium/issues/detail?id=92847
-
---- source/i18n/digitlst.cpp.orig 2011-07-19 23:16:00.000000000 +0200
-+++ source/i18n/digitlst.cpp 2011-10-12 23:47:08.000000000 +0200
-@@ -60,6 +60,18 @@
-
- U_NAMESPACE_BEGIN
-
-+static void
-+loadDecimalChar() {
-+ if (gDecimal == 0) {
-+ char rep[MAX_DIGITS];
-+ // For machines that decide to change the decimal on you,
-+ // and try to be too smart with localization.
-+ // This normally should be just a '.'.
-+ sprintf(rep, "%+1.1f", 1.0);
-+ gDecimal = rep[2];
-+ }
-+}
-+
- // -------------------------------------
- // default constructor
-
-@@ -408,15 +420,6 @@
- }
- DigitList *nonConstThis = const_cast<DigitList *>(this);
-
-- if (gDecimal == 0) {
-- char rep[MAX_DIGITS];
-- // For machines that decide to change the decimal on you,
-- // and try to be too smart with localization.
-- // This normally should be just a '.'.
-- sprintf(rep, "%+1.1f", 1.0);
-- gDecimal = rep[2];
-- }
--
- if (isZero()) {
- nonConstThis->fDouble = 0.0;
- if (decNumberIsNegative(fDecNumber)) {
-@@ -451,6 +454,7 @@
- }
- U_ASSERT(uprv_strlen(&s[0]) < MAX_DBL_DIGITS+18);
-
-+ loadDecimalChar();
- if (gDecimal != '.') {
- char *decimalPt = strchr(s, '.');
- if (decimalPt != NULL) {
-@@ -741,6 +745,17 @@
- sprintf(rep, "%+1.*e", MAX_DBL_DIGITS - 1, source);
- U_ASSERT(uprv_strlen(rep) < sizeof(rep));
-
-+ // uprv_decNumberFromString() will parse the string expecting '.' as a
-+ // decimal separator, however sprintf() can use ',' in certain locales.
-+ // Overwrite a different decimal separator with '.' here before proceeding.
-+ loadDecimalChar();
-+ if (gDecimal != '.') {
-+ char *decimalPt = strchr(rep, gDecimal);
-+ if (decimalPt != NULL) {
-+ *decimalPt = '.';
-+ }
-+ }
-+
- // Create a decNumber from the string.
- uprv_decNumberFromString(fDecNumber, rep, &fContext);
- uprv_decNumberTrim(fDecNumber);