[Boost-bugs] [Boost C++ Libraries] #9120: system_error_category::message() produces non-english error messages in ANSI encoding

Subject: [Boost-bugs] [Boost C++ Libraries] #9120: system_error_category::message() produces non-english error messages in ANSI encoding
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-16 14:32:22


#9120: system_error_category::message() produces non-english error messages in
ANSI encoding
------------------------------+------------------------
 Reporter: s.cheban@… | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: system
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+------------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9120>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC