From: parkinson at fm-net dot ne dot jp Operating system: Linux PHP version: 5.2.5 PHP Bug Type: ICONV related Bug description: Linux fails with iconv("Shift_JIS", "Shift_JIS//TRANSLIT", $result);
Description: ------------ iconv fails on linux when the encoding types are both Shift_JIS looks a bit like Bug #38425, I agree with the comment: "shouldn't the //TRANSLIT mode modify such behaviour and allow the conversion to continue?" Reproduce code: --------------- Both of these fail on Linux but not windows: $result = iconv("Shift_JIS", "Shift_JIS//TRANSLIT", $result); $result = iconv("Shift-JIS", "Shift_JIS//TRANSLIT", $result); $result contains the contents of this page: http://www.seodayo.com/lint/htmllint.cgi?URL=http%3A%2F%2Fwww.e-food.jp%2F the char it fail on is just after "<img src="./fight.gif" alt=" Expected result: ---------------- $result should be unchanged or contain valid Shift_JIS. Actual result: -------------- It returns part of $result, as if some char is causing it to stop processing. i.e. the first 1000 bytes of $result are returned,the rest, around 6000 bytes, are missing. the bytes where it stops have values 243, 164, 208 -- Edit bug report at http://bugs.php.net/?id=43672&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43672&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43672&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43672&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43672&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43672&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43672&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43672&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43672&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43672&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43672&r=support Expected behavior: http://bugs.php.net/fix.php?id=43672&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43672&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43672&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43672&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43672&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43672&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43672&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43672&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43672&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43672&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43672&r=mysqlcfg