]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Issue #1407 - skip unused ISO 8859 control codes.
authorAdam Sutton <dev@adamsutton.me.uk>
Thu, 29 Nov 2012 09:57:20 +0000 (09:57 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Thu, 29 Nov 2012 09:57:20 +0000 (09:57 +0000)
This had the effect of placing unwanted spaces into various channel
names where the broadcaster was sending these control chars.

Thanks to Rene Herbrich for diagnosing this.

src/dvb/dvb_support.c

index 64b35b2a65bf0ef6ddaf5f6b50dced4dbebe6579..b4d5e3b0957c4c65d54f4d7338cf1a30e20e405d 100644 (file)
@@ -95,10 +95,7 @@ static inline size_t conv_8859(int conv,
       (*dstlen)--;
       dst++;
     } else if (c <= 0x9f) {
-      // codes 0x80 - 0x9f (control codes) are mapped to ' '
-      *dst = ' ';
-      (*dstlen)--;
-      dst++;
+      // codes 0x80 - 0x9f (control codes) are ignored
     } else {
       // map according to character table, skipping
       // unmapped chars (value 0 in the table)