]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Use "ISO-8859-%d" instead of "ISO_8859-%d" in dvb_iconv_open().
authorRichard Kunze <richard.kunze@web.de>
Thu, 3 May 2012 23:10:56 +0000 (01:10 +0200)
committerRichard Kunze <richard.kunze@web.de>
Mon, 14 May 2012 18:51:20 +0000 (20:51 +0200)
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.

src/dvb/dvb_support.c

index 9027e0fa1b603f1daa8ccc276a59914349ee636c..94c6be2a27df1f0bf0e7d80c6511f5d0d2e9d7cc 100644 (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);
   }