Skip Menu |

This queue is for tickets about the Unicode-IMAPUtf7 CPAN distribution.

Report information
The Basics
Id: 6909
Status: resolved
Priority: 0/
Queue: Unicode-IMAPUtf7

People
Owner: Nobody in particular
Requestors: trondmm [...] crusaders.no
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.00
Fixed in: (no value)



Subject: single + and & signs are encoded as the same sequence
Hi. I just discovered a bug in Unicode::IMAPUtf7 Both "&" and "+" are encoded as "&-". The main issue seems to be that Unicode::IMAPUtf7 uses regular expressions to modfify a "normal" utf7-string. Here's an example of the error: perl -MUnicode::IMAPUtf7=imap_utf7_encode,imap_utf7_decode -le 'for ("&test", "+test") {printf "%s is encoded as %s and decoded back to %s\n", $_, imap_utf7_encode($_), imap_utf7_decode(imap_utf7_encode($_))}' I'll see if I can make a patch during the weekend.
Hope it is fix now. Fixed in 2.01