[dev] Horde_Util, failed test with recent glibc

Remi Collet remi at fedoraproject.org
Sun Jul 26 09:01:34 UTC 2015


Hi,

In Fedora CI, Horde_Util test suite start failing.
https://apps.fedoraproject.org/koschei/package/php-horde-Horde-Util

1) Horde_Util_TransliterateTest::testTransliterateToAsciiIconv with
data set #1 ('AÀBÞEÉSß', 'AAB?EESss')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'AAB?EESss'
+'AABTHEESss'

/builddir/build/BUILD/php-horde-Horde-Util-2.5.5/Horde_Util-2.5.5/test/Horde/Util/TransliterateTest.php:73

2) Horde_Util_TransliterateTest::testTransliterateToAsciiIconv with
data set #2 ('AÀ黾BÞ', 'AA?B?')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'AA?B?'
+'AA?BTH'


This is related to iconv, where "Þ" is now translated as "TH"
(like with intl).

Fedora rawhide, glibc 2.21.90:
  $ php -r 'var_dump(iconv("UTF-8", "ASCII//TRANSLIT", "Þ"));'
  string(2) "TH"

Fedora 21, glibc 2.20:
  $ php -r 'var_dump(iconv("UTF-8", "ASCII//TRANSLIT", "Þ"));'
  string(1) "?"


Trivial fix will be to remoe this specific char from the test.


Remi.


More information about the dev mailing list