[vlc-commits] ts: correct Traditional Chinese EPG encoding (fixes #8235)

Rémi Denis-Courmont git at videolan.org
Mon Feb 25 18:34:20 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Feb 25 19:32:29 2013 +0200| [1937a483eec418a7efaae4b1addb5bb398185ca8] | committer: Rémi Denis-Courmont

ts: correct Traditional Chinese EPG encoding (fixes #8235)

ETSI EN 300 468 § A.2 assigns the first byte 0x14 value to the
"Big5 subset of ISO/IEC 10646". This really means that the character
set is Big5, but the encoding is ISO/IEC 10646, a.k.a. Unicode.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1937a483eec418a7efaae4b1addb5bb398185ca8
---

 modules/demux/dvb-text.h |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/demux/dvb-text.h b/modules/demux/dvb-text.h
index c713d51..6f15554 100644
--- a/modules/demux/dvb-text.h
+++ b/modules/demux/dvb-text.h
@@ -58,6 +58,7 @@ static char *vlc_from_EIT (const void *buf, size_t length)
                return NULL;
            break;
         case 0x11: /* the BMP */
+        case 0x14: /* Big5 subset of the BMP */
             encoding = "UCS-2BE";
             break;
         case 0x12:
@@ -70,9 +71,6 @@ static char *vlc_from_EIT (const void *buf, size_t length)
         case 0x13: /* GB-2312-1980 */
             encoding = "GB2312";
             break;
-        case 0x14: /* Big5 subset of the BMP */
-            encoding = "BIG-5";
-            break;
         case 0x15:
             encoding = "UTF-8";
             break;



More information about the vlc-commits mailing list