Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16617

[C++] WinErrorMessage() should not use Windows ANSI APIs

    XMLWordPrintableJSON

Details

    Description

      The WinErrorMessage utility function calls FormatMessageA in order to get the Windows error message. This unfortunately returns the message encoded using the current "codepage", which can give unreadable results if there are non-ASCII characters in it.

      Instead, we should probably use FormatMessageW and then convert to UTF-8. At least PyArrow expects the error message in a Status to be utf8-encoded.

      Attachments

        Issue Links

          Activity

            People

              kou Kouhei Sutou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 50m
                  2h 50m