Skip Menu |

This queue is for tickets about the Data-ICal CPAN distribution.

Report information
The Basics
Id: 76885
Status: rejected
Priority: 0/
Queue: Data-ICal

People
Owner: Nobody in particular
Requestors: kajtzu [...] a51.org
Cc:
AdminCc:

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



Subject: data::ical folds lines with utf-8 sequence at position ~75 wrong
Date: Sun, 29 Apr 2012 21:54:04 +0000
To: "bug-data-ical [...] rt.cpan.org" <bug-data-ical [...] rt.cpan.org>
From: Kaj Niemi <kajtzu [...] a51.org>
Hi, Data::ICal::Property's folding algorithm (in private method _fold) seems to assume that all content is US-ASCII as the folding happens at 75 bytes no matter what. This assumption becomes a problem when at position 75 there is a UTF-8 sequence (double byte) which may not split onto two lines. It would be nice if folding were a bit smarter. Thanks ;-) Kaj
Download smime.p7s
application/pkcs7-signature 4.2k

Message body not shown because it is not plain text.

From: asjo [...] koldfront.dk
On Sun Apr 29 17:55:04 2012, kajtzu@a51.org wrote: Show quoted text
> Data::ICal::Property's folding algorithm (in private method _fold) > seems to assume that all content is US-ASCII as the folding happens > at 75 bytes no matter what. This assumption becomes a problem when > at position 75 there is a UTF-8 sequence (double byte) which may > not split onto two lines.
Show quoted text
> It would be nice if folding were a bit smarter.
I had the same problem, but it turned out to be because Perl didn't know that my strings were utf-8; when I fixed that, folding worked fine. (I had to add pg_enable_utf8 to the DBI-connection I am reading my data from - maybe you need something similar?) Best regards, Adam
I'm rejecting this bug. If you pass bytes, Data::ICal does not have a means to know how they are encoded. If you pass characters, they can be properly split.