Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11878: Locale dependend number formatting doesn't work with MSVC release config
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-30 10:23:28
#11878: Locale dependend number formatting doesn't work with MSVC release config
--------------------------------+---------------------
Reporter: octavian.cacina@⦠| Owner: artyom
Type: Bugs | Status: new
Milestone: To Be Determined | Component: locale
Version: Boost 1.60.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------+---------------------
Comment (by artyom):
Ok, it works 100% from me for MSVC 10 (Don't have 15 so can't check)
For me it starts looking like MSVC bug.
Can you please add following lines to code at the end:
{{{
cout << "boost locale num_put ";
auto& boostFacet = std::use_facet<std::num_put<char>>(boostLocale);
std::cout << typeid(boostFacet).name() << std::endl;
std::cout << "Has Facet: "<<
std::has_facet<boost::locale::info>(boostLocale) << std::endl;
boostFacet.put(cout, cout, '0', v);
cout << endl;
}}}
My output for MSVC10 is
{{{
E:\Projects\modular-boost\tmp>LocaleNumPunct.exe
std locale 2,14
std locale decimal_point ,
std locale num_put 2,14
boost locale 2,14
boost locale decimal_point ,
boost locale num_put class boost::locale::impl_win::num_format<char>
Has Facet: 1
2,14
}}}
Note the name of num_put facet and see that info is installed.
Can you please run the modified sample.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11878#comment:7> 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:19 UTC