6.0.0-beta1
8/3/25

[#3604] Characters are lost at the end of paragraf
Summary Characters are lost at the end of paragraf
Queue IMP
Queue Version FRAMEWORK_3
Type Bug
State Duplicate
Priority 1. Low
Owners
Requester leena.heino (at) uta (dot) fi
Created 03/10/2006 (7086 days ago)
Due
Updated 03/14/2006 (7082 days ago)
Assigned
Resolved 03/10/2006 (7086 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/14/2006 01:06:54 AM Michael Slusarz Comment #5 Reply to this comment
This has already been fixed by Jan (see Bug 3574).
03/13/2006 02:31:55 PM leena (dot) heino (at) uta (dot) fi Comment #4
New Attachment: mb_ereg_test.php Download
Reply to this comment
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.
03/10/2006 04:42:27 PM leena (dot) heino (at) uta (dot) fi Comment #3 Reply to this comment
Duplicate of Bug 3574.  And, as noted in that bug, this bug is not
reproducible (by me at least).
Have you tried the example I put in the previus message?

What php versio have you used in the testing?



We have been able to reproduce this bug with atleast with php version 
4.3.11. It does not matter what browser the user is using.



This bug was not present in the previous 4.0.9 version of Imp.
03/10/2006 03:36:54 PM Michael Slusarz Comment #2
State ⇒ Duplicate
Reply to this comment
Duplicate of Bug 3574.  And, as noted in that bug, this bug is not 
reproducible (by me at least).
03/10/2006 01:47:51 PM leena (dot) heino (at) uta (dot) fi Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Characters are lost at the end of paragraf
Queue ⇒ IMP
Reply to this comment
If message has paragraf with a line longer than 78 characters then the 
last characters seem to get lost. This happens only when the last 
chacters in the paragraf is non-ascii character or non-ascii character 
with whitespace or punctuation character.



Simple test seem to be that you write an email with a paragraf 
something like this:

Vesihiisi sihisi hississä. Vesihiisi sihisi hississä. Vesihiisi sihisi 
hississä. Vesihiisi sihisi hississä.



If this message is sent or saved to a sent-mail folder then the last 
characters 'ä.'  of the paragraf above are lost.

Saved Queries