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

RamLog and standard log should preserve utf8 encoding when truncating

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.0.7, 2.2.0
    • Logging
    • None

    Description

      RamLog::write() only copies the first 255 bytes of a long string, but if the last two bytes are part of a utf-8 encoding (e.g. 0xd0 0x80), a RamLog consumer may spuriously fail to validate the string is utf-8.

      Attachments

        Activity

          People

            geert.bosch@mongodb.com Geert Bosch
            benjamin.becker Ben Becker
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: