Commit 86a33431 authored by Olivier Bertrand's avatar Olivier Bertrand

- Fix a bug in DOSFAM::OpenTableFile. Bin was not set to TRUE for blocked

  tables. This caused a CR character to be left in the line and in
  particular caused the updelx test to fail on Windows.
modified:
  storage/connect/filamtxt.cpp
parent 66ffa094
......@@ -536,7 +536,7 @@ bool DOSFAM::OpenTableFile(PGLOBAL g)
PDBUSER dbuserp = PlgGetUser(g);
// This is required when using Unix files under Windows and vice versa
Bin = (Ending != CRLF);
Bin = (Blocked || Ending != CRLF);
switch (mode) {
case MODE_READ:
......@@ -578,7 +578,7 @@ bool DOSFAM::OpenTableFile(PGLOBAL g)
} // endswitch Mode
// For blocked I/O or for moving lines, open the table in binary
strcat(opmode, (Blocked || Bin) ? "b" : "t");
strcat(opmode, (Bin) ? "b" : "t");
// Now open the file stream
PlugSetPath(filename, To_File, Tdbp->GetPath());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment