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

Windows implementation of toWideString in text.cpp is incorrect.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1.2
    • None
    • Internal Code
    • Windows
    • Windows

    Description

      Strings composed of sequences chars in the mongo code base are presumed to be UTF-8 encoded, but the implementation of toWideString converts based on the current process code page, which in client code may not be UTF-8. The correct implementation should always convert UTF-8 to wchar_t (UTF-16 on Windows Vista and later, I believe).

      Attachments

        Activity

          People

            tad Tad Marshall
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: