[Kde-pim] [PATCH] CHARSET parameter not handled by libical

Reinhold Kainhofer reinhold at kainhofer.com
Wed Feb 28 12:39:50 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Mittwoch, 28. Februar 2007 schrieb Tobias Koenig:
> Hi,
>
> I just discovered a bug in libical which causes libkcal to load
> iCal/vCal calendars incorrectly.

Of course, libical can't load vCal, as it is meant only for iCalendar!

> The problem is that libical doesn't know about the 'CHARSET' parameter
> that can be used to define the charset for a field (e.g. SUMMARY or
> DESCRIPTION).

So? RFC 2445 clearly says that in iCalendar there is no such parameter as 
CHARSET!

"4.1.4 Character Set

   There is not a property parameter to declare the character set used
   in a property value. The default character set for an iCalendar
   object is UTF-8 as defined in [RFC 2279].

   The "charset" Content-Type parameter can be used in MIME transports
   to specify any other IANA registered character set.
"


> However some Groupware server (e.g. eGroupware, OpenXchange) create
> fields with charset parameter if it contains non-latin1 characters.

So they are creating either vCalendar file or terribly broken iCalendar 
ones...

Furthermore, what does that patch do except for allowing the CHARSET 
parameter? That parameter will not be used when interpreting the SUMMARY or 
DESCRIPTION, will it? So I don't see a point in this patch alone. If 
anything, we might add a compatibility workaround to actually use the CHARSET 
parameter -- if given -- to interpret the contents of the corresponding 
property, too. 

Cheers,
Reinhold


- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: reinhold at kainhofer.com, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFF5XgWTqjEwhXvPN0RAjRwAJ4xRoqBAejJjnpT/6qOjyvAVZ7BkwCfZ2+U
CO1GJg4N16HbE7LErwyNTS4=
=Cnmy
-----END PGP SIGNATURE-----
_______________________________________________
kde-pim mailing list
kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/



More information about the kde-pim mailing list