]> git.tdb.fi Git - libs/core.git/commitdiff
Use transliterate mode in transcode
authorMikko Rasa <tdb@tdb.fi>
Mon, 21 Sep 2009 16:28:17 +0000 (16:28 +0000)
committerMikko Rasa <tdb@tdb.fi>
Mon, 21 Sep 2009 16:28:17 +0000 (16:28 +0000)
transcode.cpp

index 12b93ec59520863c9c41c6411403b507f8fecfbd..bba64abe6a5429d5f4cbbab00d0785d245935b22 100644 (file)
@@ -17,8 +17,8 @@ int main(int argc, char **argv)
        Codecs::Codec *from=Codecs::create_codec(argv[1]);
        Codecs::Codec *to=Codecs::create_codec(argv[2]);
 
-       Codecs::Decoder *from_dec=from->create_decoder();
-       Codecs::Encoder *to_enc=to->create_encoder();
+       Codecs::Decoder *from_dec=from->create_decoder(Codecs::TRANSLITERATE);
+       Codecs::Encoder *to_enc=to->create_encoder(Codecs::TRANSLITERATE);
 
        string line;
        while(getline(cin, line))