From:             yury at gorodok dot net
Operating system: Windows
PHP version:      5.0.2
PHP Bug Type:     ICONV related
Bug description:  wrong translation

Description:
------------
The code must translate UTF-8 to windows-1251,
but it truncates output!
May be old compiled in version of libiconv?

examples follow:
 UTF-8:
  http://yury.gorodok.net/temp/test_.html
 result:
  http://yury.gorodok.net/temp/test_1.html

(the content is not essential, I suppose)

Reproduce code:
---------------
 $fstr=fread($f, $flen);
 $ffstr=iconv( "windows-1251", "UTF-8",$fstr);
  echo fwrite($ff,$ffstr, strlen($ffstr))."\n";



-- 
Edit bug report at http://bugs.php.net/?id=31314&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31314&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31314&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31314&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31314&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31314&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31314&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31314&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31314&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31314&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31314&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31314&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31314&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31314&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31314&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31314&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31314&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31314&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31314&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31314&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31314&r=mysqlcfg

Reply via email to