Summary | some characters are lost from the end of long lines |
Queue | IMP |
Queue Version | 4.1 |
Type | Bug |
State | Resolved |
Priority | 3. High |
Owners | jan (at) horde (dot) org |
Requester | tpeland (at) tkukoulu (dot) fi |
Created | 03/08/2006 (7031 days ago) |
Due | |
Updated | 03/13/2006 (7026 days ago) |
Assigned | 03/10/2006 (7029 days ago) |
Resolved | 03/13/2006 (7026 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
The problem here is the String::regexMatch() call in Text/Flowed.php,
line 265.
The message is being written in iso-8859-1, so we don't use preg_match
that only supports utf-8. But mb_ereg doesn't support iso-8859-1
either, at least that's the error message I get.
I guess we need to change the regexMatch() method to always convert to
utf-8 and use preg_match.
LANG= ; /usr/bin/gpg --no-tty --no-secmem-warning --no-options
--no-default-keyring --quiet --yes --homedir /dev/shm/jlfpj0wo
--gen-key --batch --armor
%pubring /dev/shm/jlfpj0wo/horde-pgpSYKlUM
%secring /dev/shm/jlfpj0wo/horde-pgpBq0X3I
Key-Type: DSA
Key-Length: 1024
Subkey-Type: ELG-E
Subkey-Length: 1024
Name-Real: asdöjf
Name-Email: schneiderj@gmx.de
Expire-Date: 0
Passphrase: j
%commit
++++++++++..+++++++++++++++++++++++++.+++++.+++++++++++++++++++++++++.++++++++++++++++++++.++++++++++.++++++++++.+++++++++++++++++++++++++>+++++.+++++...............................+++++
+++++++++++++++++++++++++.++++++++++.++++++++++..++++++++++++++++++++.+++++++++++++++.++++++++++++++++++++.++++++++++++++++++++..+++++.+++++>+++++>+++++....................+++++^^^
gpg: build-packet.c:74: build_packet: Assertion `pkt->pkt.generic' failed.
After the first hash line was a *very* long pause.
Assigned to Jan Schneider
version 4.4.0. What are you using?
Since I can't reproduce this, you will either have to hope that some
other developer can reproduce this or you will have to trace the code
and find the location where this information is being dropped on your
system. If you do find this location, let us know and we will take a
look.
generated which looks fine to me.
framework/horde/imp and the problem persists.
Maybe there is a problem with the php version. I have currently php
version 4.4.0. What are you using?
State ⇒ Feedback
Priority ⇒ 1. Low
New Attachment: Message Source.eml
generated which looks fine to me.
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ some characters are lost from the end of long lines
Queue ⇒ IMP
State ⇒ Unconfirmed
from the end of line. Following conditions must be true to trigger this.
The paragraph must be long enough that the line is folded to multiple lines.
The paragraph must end with a "non-ascii character" + '.'.
The charset selected must be something other then utf-8 (at least
iso-8859-1 and iso-8859-15 cause this problem).
--- example (write this as a single line) ---
Sähköpostin standardeissa todetaan vain, että ohjelmien pitää varautua
erilaisiin rivinvaihtomerkkeihin tekstissä.
--- end ---
--- the contents of the mail sent ---
S=E4hk=F6postin standardeissa todetaan vain, ett=E4 ohjelmien pit=E4=E4 vara=
utua =20
erilaisiin rivinvaihtomerkkeihin tekstiss
--- end ---
In the above example the characters 'ä.' have disappeared from the
end of text.