Stripping control codes 0x86 and 0x87 from SI strings

This commit is contained in:
Klaus Schmidinger 2008-02-26 16:26:12 +01:00
parent 4c1ab4f82d
commit d5dc5de97a
2 changed files with 3 additions and 3 deletions

View File

@ -5671,10 +5671,11 @@ Video Disk Recorder Revision History
- Added the backslash ('\') to the list of characters that need to be escaped - Added the backslash ('\') to the list of characters that need to be escaped
when executing external commands (thanks to Peter Bieringer for reporting this one). when executing external commands (thanks to Peter Bieringer for reporting this one).
2008-02-25: Version 1.5.17 2008-02-26: Version 1.5.17
- Updated the Swedish OSD texts (thanks to Tomas Berglund). - Updated the Swedish OSD texts (thanks to Tomas Berglund).
- Made the 'pic2mpg' script of the 'pictures' plugin work with uppercase filename - Made the 'pic2mpg' script of the 'pictures' plugin work with uppercase filename
extensions (thanks to Stefan Wagner for reporting this one). extensions (thanks to Stefan Wagner for reporting this one).
- Updated the Romanian OSD texts (thanks to Lucian Muresan). - Updated the Romanian OSD texts (thanks to Lucian Muresan).
- Updated the Dutch OSD texts (thanks to Johan Schuring). - Updated the Dutch OSD texts (thanks to Johan Schuring).
- Stripping control codes 0x86 and 0x87 from SI strings.

View File

@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
* $Id: si.c 1.22 2007/07/21 13:49:48 kls Exp $ * $Id: si.c 1.23 2008/02/26 16:25:14 kls Exp $
* * * *
***************************************************************************/ ***************************************************************************/
@ -415,7 +415,6 @@ void String::decodeText(char *buffer, int size) {
if ( ((' ' <= *from) && (*from <= '~')) if ( ((' ' <= *from) && (*from <= '~'))
|| (*from == '\n') || (*from == '\n')
|| (0xA0 <= *from) || (0xA0 <= *from)
|| (*from == 0x86 || *from == 0x87)
) )
*to++ = *from; *to++ = *from;
else if (*from == 0x8A) else if (*from == 0x8A)