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

text.h: toNativeString() not implemented when _UNICODE not defined

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.1.1
    • Component/s: Internal Client
    • ALL

      The C++ driver errors out when you try to build it for Windows at text.h, while trying to compile text.cpp. It hits a #error for toNativeString() when _UNICODE is undefined, presumably because we haven't decided yet how we want to get from UTF-8 to the native code page?

      To repro, build the client source distribution archive:

      z:\dev\mongo> scons clientdist
      

      Unpack the archive, which is named mongo-cxx-driver.zip.

      Then, run scons inside the unpacked driver source directory:

      z:\dev\mongo-cxx-driver> scons
      

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: