From: pascal dot chevrel at free dot fr Operating system: Linux PHP version: 5.5.1 Package: Unicode Engine related Bug Type: Bug Bug description:Transliteration has uppercase problems with letter J in Serbian
Description: ------------ The transliterator class does not work well when converting from Cyrillic Serbian to Latin Script Serbian. All the j letters in cyrillic are systematically converted to uppercase J in latin-script serbian while it should be lowercase j inside a word. Online conversion tools probably also based on ICU don't have this bug and do the conversion correctly. I am attaching a code sample that shows that bug. I tested that the bug exists in both PHP 5.4 and 5.5 Thanks! Test script: --------------- <?php $t = Transliterator::create('Serbian-Latin/BGN'); $source = 'ÐаÑгледаниÑи ÑаÑÑови'; echo '<ul>' . '<li>Cyrillic source: ' . $source . '</li>' . '<li>Expected transliteration: Najgledaniji sajtovi</li>' . '<li>Actual transliteration: ' . $t->transliterate($source) . '</li>' . '</ul>'; Expected result: ---------------- This string : ÐаÑгледаниÑи ÑаÑÑови Should be transliterated to: Najgledaniji sajtovi Actual result: -------------- But PHP transliterates it to: NaJgledaniJi saJtovi -- Edit bug report at https://bugs.php.net/bug.php?id=65361&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65361&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65361&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65361&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65361&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65361&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65361&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65361&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65361&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65361&r=support Expected behavior: https://bugs.php.net/fix.php?id=65361&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65361&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65361&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65361&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65361&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65361&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65361&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65361&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65361&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65361&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65361&r=mysqlcfg