Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Integrity Servers: HP aC++/HP ANSI C Release Notes > Chapter 5 Known Problems and Workarounds

codecvt_byname Facet Needed for C Locale Conversions

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

You must use the codecvt_byname facet to use C locale conversions.

To do locale-specific conversions, the codecvt_byname facet must be installed in the locale:

   typedef std::codecvt_byname<wchar_t, char, std::mbstate_t> ucs2utf;
   locale default_locale(std::locale(), new ucs2utf("en_US.utf8"));
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2007 Hewlett-Packard Development Company, L.P.