Author: tfaber
Date: Sun Apr 13 05:50:09 2014
New Revision: 62733
URL:
http://svn.reactos.org/svn/reactos?rev=62733&view=rev
Log:
[UTF16LE]
- Use binary mode for input and output files. Patch by Tomoya Kitagawa
CORE-7705 #resolve #comment Committed in r62733. Thanks!
Modified:
trunk/reactos/tools/utf16le/utf16le.cpp
Modified: trunk/reactos/tools/utf16le/utf16le.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/utf16le/utf16le.cpp?…
==============================================================================
--- trunk/reactos/tools/utf16le/utf16le.cpp [iso-8859-1] (original)
+++ trunk/reactos/tools/utf16le/utf16le.cpp [iso-8859-1] Sun Apr 13 05:50:09 2014
@@ -35,13 +35,13 @@
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;