Re: [Boost-bugs] [Boost C++ Libraries] #10010: Boost 1.55 does not support setting language of description in exception

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10010: Boost 1.55 does not support setting language of description in exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-07 08:57:14


#10010: Boost 1.55 does not support setting language of description in exception
-------------------------------+-----------------------------------
  Reporter: anonymous | Owner: emildotchevski
      Type: Feature Requests | Status: closed
 Milestone: To Be Determined | Component: exception
   Version: Boost 1.55.0 | Severity: Problem
Resolution: wontfix | Keywords: Language in exception
-------------------------------+-----------------------------------

Comment (by anonymous):

 Replying to [ticket:10010 anonymous]:
> You should not attempt to format a user-friendly message at the point of
 the throw. Instead, store in the exception object any and all information
 that is needed to format a user-friendly message, then use that
 information at the point of the catch to format the message.

 Could you help me? I need to show error message on English language on
 every Windows (Windows can have Russian locale, German locale, etc. In
 this situation, language of message will be like locale). You use
 FormatMessage and set using default locale (user' locale). Can I change
 this parameter in Format message? Possibly I don't know how to do it :(

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10010#comment:2>
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:16 UTC