ID:               16069
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         ICONV related
 Operating System: win32, Linux
 PHP Version:      4.1.2
 New Comment:

I think when recent Linux is used, there should be no such problem.
i.e. When iconv is supported by libc, length of resulting string is
correct. (Requires 4.2.0 or later)

When libiconv is used, there will be problem since it just allocate
org_string_len*sizeof(UCS4 width) which cannot be
corret. (And inefficient memory use)

So please note which iconv you're using. I may fix if libc iconv
support is broken.

PS: If errno is supported for libiconv (errno should be supported for
all platforms we support), we just can get rid of code for libiconv
support and use libc iconv support.





Previous Comments:
------------------------------------------------------------------------

[2002-05-26 19:59:10] [EMAIL PROTECTED]

No, it doesn't for now, at least in my box. I tried with 4.3.0-dev and
it resulted in segv. It seems because of buffer over run.

------------------------------------------------------------------------

[2002-05-26 14:50:32] [EMAIL PROTECTED]

Does this now work as expected in PHP 4.2.1 ?


------------------------------------------------------------------------

[2002-05-25 07:04:15] [EMAIL PROTECTED]

User reports:

But I think this problem was not completely solved yet because
libiconv support code is still old.
I confirmed it by running my testing script I've shown in #16069 on the
binary
base on the latest cvs version.
I can only choose libiconv when I work with Windows PHP.
Or Should I wonder if the support was done ?

As far as I know, libiconv can handle errno even in its win32 port.

Thanks,

Moriyoshi Koizumi


------------------------------------------------------------------------

[2002-05-24 20:28:24] [EMAIL PROTECTED]

This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------

[2002-03-15 03:21:44] [EMAIL PROTECTED]

Yes, I know I am a exception :) and most PHP user don't have to care
about this problem. Besides it seems that glibc ICONV can not handle
CP932 characters properly.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/16069

-- 
Edit this bug report at http://bugs.php.net/?id=16069&edit=1

Reply via email to