Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38066

Shell utils should open files in binary mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.5, 4.1.6
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Sprint:
      Storage NYC 2018-11-19, Storage NYC 2018-12-03
    • Linked BF Score:
      91

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              louis.williams Louis Williams
              Reporter:
              louis.williams Louis Williams
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: