Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2873

TPipe and TPipeServer don't compile on Windows with UNICODE enabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.3
    • Fix Version/s: 0.9.3
    • Component/s: C++ - Library
    • Labels:
    • Environment:

      Visual Studio 2013

    • Patch Info:
      Patch Available

      Description

      When compiling the Thrift C++ library with UNICODE enabled TPipe and TPipeServer won't compile as the are using LPSTR which only works with Multi byte charactersets.

      The appended patch uses LPTSTR instead of LPSTR which is set based on the UNICODE flag by Visual Studio.
      It also does some casts from raw const char * to LPCSTR.

        Attachments

          Activity

            People

            • Assignee:
              roger.meier Roger Meier
              Reporter:
              pascal.bach Pascal Bach
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: