#46165 [Bgs]: strcoll() does not work with UTF-8 strings on Windows

From: Date: Mon, 01 Dec 2008 11:08:29 +0000
Subject: #46165 [Bgs]: strcoll() does not work with UTF-8 strings on Windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131513@lists.php.net to get a copy of this message
ID: 46165 Updated by: pajoye@php.net Reported By: gehrig at ishd dot de Status: Bogus Bug Type: Strings related Operating System: win32 only PHP Version: 5.2.6 Assigned To: pajoye New Comment: strcoll is not a PHP internal functions but is part of the CRT. PHP's strcoll is only a thin wrapper around it. We have no way to change its behavior or fix it. Previous Comments: ------------------------------------------------------------------------ [2008-12-01 10:54:24] gehrig at ishd dot de It actually IS a PHP issue as this bug describes some software defect in a PHP core function that is intended to deliver the functionality described here: sorting an array on a locale-aware basis using available system locales. You can argue whether it's worth fixing the bug with the upcoming PHP 6 in the pipeline, but simply categorizing this as a non-PHP issue is not correct. ------------------------------------------------------------------------ [2008-11-30 23:05:38] pajoye@php.net Not a php issue, use intl, mbstring or wait php6. ------------------------------------------------------------------------ [2008-10-29 10:11:46] pajoye@php.net I'm not sure it is worth fixing, for many reasons. The first is to get it working on each system in a portable is a real pain (and as Derick pointed out, really not only on windows). My opinion is that all these functions should be deprecated (or strongly recommend to do not be used for anything but ascii) in favour of the new unicode APIs (6.x or partially with intl). ------------------------------------------------------------------------ [2008-10-29 10:05:26] derick@php.net POSIX locales, don't really deal with multi byte strings like UTF8 so well, not even on unices. ------------------------------------------------------------------------ [2008-10-27 14:10:00] jani@php.net As a windows only bug assigned to the windows port maintainer. ------------------------------------------------------------------------ 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/46165 -- Edit this bug report at http://bugs.php.net/?id=46165&edit=1

« previous php.bugs (#131513) next »