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.
This commit is contained in:
Adam Sutton 2012-11-29 09:57:20 +00:00
parent c1cb274c09
commit 8a48fe8214

View 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)