You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2022/05/19 16:48:00 UTC

[jira] [Created] (ARROW-16617) [C++] WinErrorMessage() should not use Windows ANSI APIs

Antoine Pitrou created ARROW-16617:
--------------------------------------

             Summary: [C++] WinErrorMessage() should not use Windows ANSI APIs
                 Key: ARROW-16617
                 URL: https://issues.apache.org/jira/browse/ARROW-16617
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Antoine Pitrou


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.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)