From: Richard Kunze Date: Thu, 3 May 2012 23:10:56 +0000 (+0200) Subject: Use "ISO-8859-%d" instead of "ISO_8859-%d" in dvb_iconv_open(). X-Git-Tag: 3.0~25^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=737115be4cd30d1df95c6bf48e51152a7540b338;p=thirdparty%2Ftvheadend.git Use "ISO-8859-%d" instead of "ISO_8859-%d" in dvb_iconv_open(). Both GNU libiconv and the minimal iconv implementation in OpenWRT support the "ISO-8859-*" form for at least some of the encodings in the ISO 8859 family, but not the "ISO_8859-*" form. GNU libc supports both forms, so this change does not break anything when compiling against GNU libc. --- diff --git a/src/dvb/dvb_support.c b/src/dvb/dvb_support.c index 9027e0fa1..94c6be2a2 100644 --- a/src/dvb/dvb_support.c +++ b/src/dvb/dvb_support.c @@ -58,7 +58,7 @@ dvb_conversion_init(void) int i; for(i = 1; i <= 15; i++) { - snprintf(buf, sizeof(buf), "ISO_8859-%d", i); + snprintf(buf, sizeof(buf), "ISO-8859-%d", i); convert_iso_8859[i] = dvb_iconv_open(buf); }