Commit 2d9e847e authored by Marian Ďurkovič's avatar Marian Ďurkovič

Convert EIT-coded CR/LFs to '\n'.

parent 8e0952b3
......@@ -2706,13 +2706,14 @@ static char *EITConvertToUTF8( const unsigned char *psz_instring,
*psz_out = '\0';
/* Replace EIT-coded CR/LFs by spaces */
/* Convert EIT-coded CR/LFs */
unsigned char *pbuf = (unsigned char *)psz_outstring;
for( ; pbuf < (unsigned char *)psz_out ; pbuf++)
{
if( pbuf[0] == 0xc2 && pbuf[1] == 0x8a )
{
pbuf[0] = pbuf[1] = ' ';
pbuf[0] = ' ';
pbuf[1] = '\n';
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment