Opened 9 years ago
#9120 new Bugs
system_error_category::message() produces non-english error messages in ANSI encoding
Reported by: | Owned by: | Beman Dawes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | system |
Version: | Boost 1.54.0 | Severity: | Problem |
Keywords: | Cc: |
Description
In the system_error_category::message(), the FormatMessageA(...,MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),...) is used to create error messages. Unfortunately, this code can produce non-english error messages in the ANSI encoding.
According to the http://www.boost.org/community/error_handling.html, "internationalization is beyond the scope of the exception class author". So, I think that it would be better to use MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT) here.
Note:
See TracTickets
for help on using tickets.