andoma/tvheadend — pull request #90 by rkunze (2012-05-14 20:10:54+00:00)
Title: Add support for systems without sufficient iconv implementations (e.g. OpenWRT)

In trying to run tvheadend on OpenWRT, I've found that most iconv implementations available in OpenWRT only support some of the character set conversions needed by tvheadend:

* The default (stripped-down) iconv implementation for uClibc builds only supports UTF-8, ISO-8859-1, ISO-8859-11 and ISO-8859-15
* The "full" iconv implementation for uClibc builds (GNU libiconv) supports UTF-8 and all of the ISO-8859 family, but not ISO6937 (and according to http://lists.gnu.org/archive/html/bug-gnu-libiconv/2009-09/msg00000.html it probably never will).
* only the (for OpenWRT) non-standard option of compiling against (e)glibc can give full iconv support - but at the expense of a larger system image, and for ISO6937 support the relevant gconv module has to be included by hand.

This patch set adds a new configure option ("--enable-dvbconv") that adds built-in conversions for all charsets used by tvheadend and does not use iconv at all, as well as a number of fixes that enable at least partial support when compiling against either the stripped-down or full iconv implementations available in OpenWRT (and probably a number of other embedded environments as well).