Horde_Util, failed test with recent glibc

Remi Collet <[email protected]>
Newsgroups gmane.comp.horde.devel
Message-ID <[email protected]>
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.
-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.