From: Adam Sutton Date: Thu, 29 Nov 2012 09:57:20 +0000 (+0000) Subject: Issue #1407 - skip unused ISO 8859 control codes. X-Git-Tag: v3.5~250 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a48fe8214df98fc7cd7f23fb210971921d6282c;p=thirdparty%2Ftvheadend.git Issue #1407 - skip unused ISO 8859 control codes. 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. --- diff --git a/src/dvb/dvb_support.c b/src/dvb/dvb_support.c index 64b35b2a6..b4d5e3b09 100644 --- a/src/dvb/dvb_support.c +++ b/src/dvb/dvb_support.c @@ -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)