-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Description
Description:
The following shell helpers now have the following arguments:
cat(filePath, [useBinaryMode = false])
writeFile(filePath, fileContents, [useBinaryMode = false])If 'useBinaryMode' is true, files with newline (\n) characters will not be translated into \r\n on Windows.
Engineering Ticket Description:
The shell helpers for reading files, cat(), and writing files, writeFile() do not open files in binary mode, ios::binary. On Windows, this results in \n characters being translated as \r\n.
If the WiredTiger.turtle file is opened with cat() and written with writeFile(), WiredTiger will be unable to read it because it does not recognize \r characters.
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- documents
-
SERVER-38066 Shell utils should open files in binary mode
- Closed