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

XMLWordPrintableJSON

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

      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:
              Andy Schwerin
              Reporter:
              Andy Schwerin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: