Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10010 closed Feature Requests (wontfix)

Boost 1.55 does not support setting language of description in exception

Reported by: anonymous Owned by: Emil Dotchevski
Milestone: To Be Determined Component: exception
Version: Boost 1.55.0 Severity: Problem
Keywords: Language in exception Cc:

Description (last modified by Emil Dotchevski)

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.

Change History (2)

comment:1 by Emil Dotchevski, 8 years ago

Description: modified (diff)
Resolution: wontfix
Status: newclosed

in reply to:  description comment:2 by anonymous, 8 years ago

Replying to 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 :(

Note: See TracTickets for help on using tickets.