parse_string: fix encodings for Taiwan
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 26 Jul 2013 10:32:51 +0000 (07:32 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 26 Jul 2013 10:32:51 +0000 (07:32 -0300)
As reported on:
http://www.mail-archive.com/linux-media@vger.kernel.org/msg64804.html
by Huey-Horng Yo <hiroshiyui@gmail.com>, the proper handling for 0x14
region code is UTF-16BE. Fix it, in order to get the proper channel
names.

Reported-by: Huey-Horng Yo <hiroshiyui@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/libdvbv5/parse_string.c

index 21368b6..d9d739c 100644 (file)
@@ -391,7 +391,7 @@ void parse_string(struct dvb_v5_fe_parms *parms, char **dest, char **emph,
                case 0x11:      type = "ISO-10646";             break;
                case 0x12:      type = "ISO-2022-KR";           break;
                case 0x13:      type = "GB2312";                break;
-               case 0x14:      type = "BIG5";                  break;
+               case 0x14:      type = "UTF-16BE";              break;
                case 0x15:      type = "ISO-10646/UTF-8";       break;
                case 0x10: /* ISO8859 */
                        if (len < 2)