[program option] Unicode support

Hi fellow boost fans, I cannot find the appropriate class to produce Unicode messages in boost::program_options::options_description. I'm looking for something like: woptions_description(const std::wstring &, unsigned = m_default_line_length); Any pointers? (no pun intended) Is there a library similar to boost::program_options with full Unicode support? Cheers, ++Hector C.

Hector C wrote:
Hi fellow boost fans,
I cannot find the appropriate class to produce Unicode messages in boost::program_options::options_description. I'm looking for something like:
woptions_description(const std::wstring &, unsigned = m_default_line_length);
The options_description class does not support unicode messages, only parsing level does. - Volodya

The options_description class does not support unicode messages, only parsing level does.
Dear Volodya, thanks for this library. Although we currently need some tweaks to support localization and internationalization, it's working fine and it's good to have this in Boost! I just wanted to ask if it's possible to somehow extend the exception classes that PO provides so that we could translate the errors to some localized error messages, depending on the current locale. E.g., sometimes you get the error "invalid value xxx for option yyy" or similar, but the exception class does not provide "xxx" and "yyy", just the whole string. If we knew the error "id" (mostly the exception class) and the parameters, it would be easy to provide our own messages. Thanks, Filip

Hi fellow boost fans,
I cannot find the appropriate class to produce Unicode messages in boost::program_options::options_description. I'm looking for something like:
woptions_description(const std::wstring &, unsigned = m_default_line_length);
Any pointers? (no pun intended)
Is there a library similar to boost::program_options with full Unicode support?
Hi Hector, see my post in the "Unicode problem" thread, which contains a workaround for this. Cheers, Filip
participants (3)
-
Filip Konvička
-
Hector C
-
Vladimir Prus