Re: [PATCH] Bug 43477 - Unicode error mode ignored
| From: | Andrei Zmievski | Date: | Tue, 18 Mar 2008 17:43:13 +0000 |
| Subject: | Re: [PATCH] Bug 43477 - Unicode error mode ignored | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36193@lists.php.net to get a copy of this message | ||
Why would we not want to stop on illegal sequences?
-Andrei
Stephen Bach wrote:
Attached is a simple proposed patch that fixes Bug 43477. Basically, the code that set the error mode of the ICU converter was giving it an instruction (the context parameter) to only skip or substitute if the code point was not represented in the new encoding. However, it still was returning an error for illegal sequences. The test suite returns the same results with or without the patch. Test also attached. -Stephen Bach