Skip to content

Commit 87a883b

Browse files
committed
[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
1 parent cccfe23 commit 87a883b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reactos/tools/utf16le/utf16le.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ class utf_converter
3535
utf_converter(string ifname, string ofname, enc_types enc = detect) : error(none), encoding(enc), fill(0), index(0)
3636
{
3737
enc_types tmp_enc;
38-
inputfile.open(ifname.c_str(), ios::in);
38+
inputfile.open(ifname.c_str(), ios::in | ios::binary);
3939
if (!inputfile)
4040
{
4141
error = iopen;
4242
return;
4343
}
44-
outputfile.open(ofname.c_str(), ios::out);
44+
outputfile.open(ofname.c_str(), ios::out | ios::binary);
4545
if (!outputfile)
4646
{
4747
error = oopen;

0 commit comments

Comments
 (0)