Re: cvs: php4 /ext/iconv/tests Quotes.UTF-8 translit-utf8.inc translit-utf8.phpt

From: Date: Thu, 10 Oct 2002 19:39:20 +0000
Subject: Re: cvs: php4 /ext/iconv/tests Quotes.UTF-8 translit-utf8.inc translit-utf8.phpt
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14801@lists.php.net to get a copy of this message
glibc iconv translit'ed like below: ---------- "Hello" 'Hello' ,,Hello" ,Hello' "Hello" 'Hello' ,,Hello" ,Hello' ---------- How can we do with this result? IMO transliteration is very implementation specific feature, and further tests may make no sense as long as doing the same ones with the different libraries. Adding constants like ICONV_IMPL and ICONV_VERSION that imply the variety of libraries looks enough cool? "Melvyn Sopacua" <msopacua@idg.nl> wrote: > msopacua Wed Oct 9 19:16:39 2002 EDT > > Added files: > /php4/ext/iconv/tests translit-utf8.inc translit-utf8.phpt > Quotes.UTF-8 > Log: > Test for standard transliteration. > Original check-translit from GNU libiconv-1.8 > > > > Index: php4/ext/iconv/tests/translit-utf8.inc > +++ php4/ext/iconv/tests/translit-utf8.inc > <?php // vim600: syn=php > error_reporting(E_ALL); > $utf = implode('', file('ext/iconv/tests/Quotes.UTF-8')); > > print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf)); > print(iconv("UTF-8", "ASCII//TRANSLIT", $utf)); > ?> > > Index: php4/ext/iconv/tests/translit-utf8.phpt > +++ php4/ext/iconv/tests/translit-utf8.phpt > --TEST-- > Translit UTF-8 quotes > --SKIPIF-- > <?php include('skipif.inc'); ?> > --FILE-- > <?php include('003.inc'); ?> > --EXPECT-- > "Hello" > `Helloエ > "Hello" > `Helloエ > "Hello" > 'Hello' > "Hello" > 'Hello'

« previous php.cvs (#14801) next »