[
https://issues.apache.org/jira/browse/ARROW-16617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antoine Pitrou resolved ARROW-16617.
------------------------------------
Fix Version/s: 9.0.0
Resolution: Fixed
Issue resolved by pull request 13203
[https://github.com/apache/arrow/pull/13203]
> [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
> Labels: pull-request-available
> Fix For: 9.0.0
>
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> 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)