[Tickets #3604] RESOLVED: Characters are lost at the end of paragraf

bugs@bugs.horde.org bugs at bugs.horde.org
Mon Mar 13 06:31:56 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3604
-----------------------------------------------------------------------
 Ticket             | 3604
 Updated By         | leena.heino at uta.fi
 Summary            | Characters are lost at the end of paragraf
 Queue              | IMP
 Version            | FRAMEWORK_3
 State              | Duplicate
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
+New Attachment     | mb_ereg_test.php
-----------------------------------------------------------------------


leena.heino at uta.fi (2006-03-13 06:31) wrote:

I have now been able to reproduce this error situation. Characters get lost
at the end of the paragraf if the text to be matched is single byte, but
mb_regex_encoding is set to multibyte charset. This error stems from the
change in Text::Flowed where in horde 3.0 reformat() used preg_match() and
horde 3.1 uses String::regex, which uses mb_ereg(),

Attached is a simple php script to illustrate the test case where characters
get lost with mb_ereg.




More information about the bugs mailing list