From b3c82b2d0642ff8672e1ed901a9b823475e585b1 Mon Sep 17 00:00:00 2001 From: Julian Depetris Chauvin Date: Fri, 20 Jul 2012 22:04:57 -0300 Subject: [PATCH] Support Stardict IFO file encoded with UTF-8. This kind of ifo file is created by StarDict Editor v3.03. Fix issue #42 --- stardict.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stardict.cc b/stardict.cc index c27ddaa1..a480e731 100644 --- a/stardict.cc +++ b/stardict.cc @@ -873,7 +873,7 @@ Ifo::Ifo( File::Class & f ): //DPRINTF( "%s<\n", f.gets().c_str() ); //DPRINTF( "%s<\n", f.gets().c_str() ); - if ( f.gets() != "StarDict's dict ifo file" || + if ( QString::fromUtf8(f.gets().c_str()) != "StarDict's dict ifo file" || f.gets().compare( 0, versionEq.size(), versionEq ) ) throw exNotAnIfoFile();