Summary | Broken iCalendar line folding with multibyte charsets |
Queue | Horde Framework Packages |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | yohann.fourteau (at) aitb (dot) org |
Created | 01/11/2008 (6387 days ago) |
Due | |
Updated | 01/24/2008 (6374 days ago) |
Assigned | 01/20/2008 (6378 days ago) |
Resolved | 01/24/2008 (6374 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
Summary ⇒ Broken iCalendar line folding with multibyte charsets
horde/libs/Horde/iCalendar.php) fixes this issue?
If I force the charset to utf-8, it works...
(the calendar is always in UTF8)
With that
$result .= $this->_foldLine($attr_string, 'utf-8') . $this->_newline;
instead of
$result .= $this->_foldLine($attr_string, NLS::getCharset()) .
$this->_newline;
at line 1017
Thanks for your reactivity !!
Yohann
Queue ⇒ Horde Framework Packages
Version ⇒ HEAD
State ⇒ Feedback
fixes this issue?
http://cvs.horde.org/diff.php?f=framework%2FiCalendar%2FiCalendar.php&r1=1.127&r2=1.130&t=unified
State ⇒ Assigned
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ mbstring problem in iCalendar webcal access
Queue ⇒ Kronolith
State ⇒ Unconfirmed
calendar through webcal with the URL :
http://webmail/horde/rpc.php/kronolith/fourteau.ics
Horde send me the calendar in UTF8. Ok no problem here.
But, I had some problem with sunbird with utf8 decoding and I had to
look into the horde code.
In /horde/lib/Horde/iCaldendar.php, function _foldLine, the command
String::substr is used but without passing the charset variable so it
uses the default charset which is for me iso-8859-1 (not mbyte string)
and not utf-8 (mbyte string)...
The foldline function cuts some mbyte and sunbird or lightning under
thunderbird doesn't like that very much...
I can't provide a patch, i don't enough know the horde code.
Thank you for your help.