[
https://issues.apache.org/jira/browse/ARROW-16617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kouhei Sutou reassigned ARROW-16617:
------------------------------------
Assignee: Kouhei Sutou
> [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++, Python
> Reporter: Antoine Pitrou
> Assignee: Kouhei Sutou
> Priority: Major
>
> 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)