[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libcdio-devel] [PATCH] UTF-8 support

From: plaum
Subject: [Libcdio-devel] [PATCH] UTF-8 support
Date: Wed, 17 May 2006 21:53:49 +0200 (CEST)

Hi all,

attached is a patch (plus 2 sourcefiles), which adds utf-8 support and
a better (i.e. more generic) charset conversion:

- Define a type cdio_utf8_t (== char), which denotes UTF-8 strings.

- Routines for converting character sets: Either using a character
  set converter (which can be used for multiple strings) or via the
  functions cdio_charset_[from|to]_utf8(). These reoutines catch the
  E2BIG error and reallocate the returned string, so you'll never need
  to know the maximum length of the destination in advance.

- Removed all occurrences of iconv from iso9660_fs.c and replaced them
  by cdio_charset_to_utf8().

The files utf8.h and utf8.c belong to include/cdio/ and lib/driver/
Testing this can be done with iso-info and a Joliet CDROM.
If there are no major objections, I'll commit this by the weekend.



Attachment: patch.txt
Description: Text document

Attachment: utf8.h
Description: Text Data

Attachment: utf8.c
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]