summaryrefslogtreecommitdiffstats
path: root/kabc
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2017-01-29 02:45:55 +0100
committerSlávek Banko <slavek.banko@axis.cz>2017-07-22 15:56:52 +0200
commitcce22677bab43c30df22235a3585e55de7e9b142 (patch)
tree5abdc10631a4c94ddf22d2f6a1a90f203f4a04e2 /kabc
parent3adc5018bf24c5705caa4dd5891476168d08c1c4 (diff)
downloadtdelibs-cce22677bab43c30df22235a3585e55de7e9b142.tar.gz
tdelibs-cce22677bab43c30df22235a3585e55de7e9b142.zip
testing: fix utf8 handling in tdeabc/testread2
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e305bd818c9cd470a0b079b4e41eb1e6ac101a52)
Diffstat (limited to 'kabc')
-rw-r--r--kabc/vcardparser/testutils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/kabc/vcardparser/testutils.cpp b/kabc/vcardparser/testutils.cpp
index ebd50c22c..f6508669b 100644
--- a/kabc/vcardparser/testutils.cpp
+++ b/kabc/vcardparser/testutils.cpp
@@ -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();
}