Bug 63215 - Iconv converting to/from UCS encoding - wrong results
Summary: Iconv converting to/from UCS encoding - wrong results
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: php (Show other bugs)
(Show other bugs)
Version: 7.2
Hardware: All Linux
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2002-04-11 09:36 UTC by Itai Nahshon
Modified: 2007-04-18 16:41 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-04-05 12:24:50 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Suggested fix (3.08 KB, patch)
2002-04-11 09:52 UTC, Itai Nahshon
no flags Details | Diff

Description Itai Nahshon 2002-04-11 09:36:50 UTC
Description of Problem: 
Iconv can not handle encodings that 
may contain null bytes (eg. UCS2)    
Version-Release number of selected component (if applicable): 
How Reproducible: 
        $s = iconv("UTF-8", "UCS-4BE", "string"); 
        $a = unpack("N*", $s); 
        foreach($a as $val) { 
                print "&#$val;"; 
        print "\n"; 
Actual Results:    
(empty line)   
Expected Results: 

Comment 1 Itai Nahshon 2002-04-11 09:52:50 UTC
Created attachment 53386 [details]
Suggested fix

Comment 2 Itai Nahshon 2002-04-11 09:56:56 UTC
I'm using the attached patch for about 4 months 
applied over php-4.0.6-x from redHat's source 
RPMS. (I recompile php anyways because I also need 
the mcrypt extension). 
A similar patch was submitted for php-4.1 CVS. 
The Latest CVS version from PHP contains newer 
enhancements that I havn't tried yet. 

Comment 3 Joe Orton 2004-04-05 12:24:50 UTC
Thanks for the report.  Presuming this is fixed in php-4.1.x based
packages; please reopen if this bug is reproducible in current releases.

Note You need to log in before you can comment on or make changes to this bug.