]> git.tdb.fi Git - libs/core.git/blobdiff - transcode.cpp
Allow error mode to be specified when creating the codec object
[libs/core.git] / transcode.cpp
index e8ba3eb5e05ca2b9a322288156f69fc19813ca4b..47a21848991d939637209a7c194e9c3ad4fa7460 100644 (file)
@@ -17,8 +17,8 @@ int main(int argc, char **argv)
        StringCodec::Codec *from = StringCodec::create_codec(argv[1]);
        StringCodec::Codec *to = StringCodec::create_codec(argv[2]);
 
-       StringCodec::Decoder *from_dec = from->create_decoder(StringCodec::TRANSLITERATE);
-       StringCodec::Encoder *to_enc = to->create_encoder(StringCodec::TRANSLITERATE);
+       StringCodec::Decoder *from_dec = from->create_decoder();
+       StringCodec::Encoder *to_enc = to->create_encoder();
 
        string line;
        while(getline(cin, line))