testing: fix utf8 handling in tdeabc/testread2

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit e305bd818c)
v3.5.13-sru
Slávek Banko 8 years ago
parent 3adc5018bf
commit cce22677ba

@ -113,6 +113,7 @@ vcardAsText( const TQString& location )
TQFile file( location );
if ( file.open( IO_ReadOnly ) ) {
TQTextStream stream( &file );
stream.setEncoding( TQTextStream::UnicodeUTF8 );
if ( !stream.eof() ) {
line = stream.read();
}

Loading…
Cancel
Save