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.
This commit is contained in:
Richard Kunze 2012-05-04 01:10:56 +02:00
parent 0e3bb41869
commit 737115be4c

View file

@ -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);
}