From 87a883ba7dcd308b36263569b6c91f4f3b0c5dbb Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 13 Apr 2014 05:50:09 +0000 Subject: [PATCH] [UTF16LE] - Use binary mode for input and output files. Patch by Tomoya Kitagawa CORE-7705 #resolve #comment Committed in r62733. Thanks! svn path=/trunk/; revision=62733 --- reactos/tools/utf16le/utf16le.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/tools/utf16le/utf16le.cpp b/reactos/tools/utf16le/utf16le.cpp index 54b23b26d03..8f4fa29bc40 100644 --- a/reactos/tools/utf16le/utf16le.cpp +++ b/reactos/tools/utf16le/utf16le.cpp @@ -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;