[UTF16LE]
[reactos.git] / reactos / tools / utf16le / utf16le.cpp
index 54b23b2..8f4fa29 100644 (file)
@@ -35,13 +35,13 @@ class utf_converter
        utf_converter(string ifname, string ofname, enc_types enc = detect) : error(none), encoding(enc), fill(0), index(0)
        {
                enc_types tmp_enc;
-               inputfile.open(ifname.c_str(), ios::in);
+               inputfile.open(ifname.c_str(), ios::in | ios::binary);
                if (!inputfile)
                {
                        error = iopen;
                        return;
                }
-               outputfile.open(ofname.c_str(), ios::out);
+               outputfile.open(ofname.c_str(), ios::out | ios::binary);
                if (!outputfile)
                {
                        error = oopen;