gcc/libstdc++-v3
François Dumont d31008d7a0 re PR libstdc++/13631 (Problems in messages)
2014-12-03  François Dumont  <fdumont@gcc.gnu.org>

	PR libstdc++/13631
	* include/bits/codecvt.h (codecvt<char, char, mbstate_t>): friend class
	std::messages<char>.
	(codecvt<wchar_t, char, mbstate_t>): friend class
	std::messages<wchar_t>.
	* config/locale/gnu/messages_member.h
	(messages<char>::do_open): Specialized.
	(messages<char>::do_close): Likewise.
	(messages<wchar_t>::do_open): Likewise.
	(messages<wchar_t>::do_close): Likewise.
	* config/locale/gnu/messages_member.cc:
	(messages<char>::do_open): Implement. Use bind_textdomain_codeset based
	on codecvt<char, char, mbstate_t>._M_c_locale_codecvt code set. Use
	internal cache to keep opened domain name with locale information.
	(messages<wchar_t>::do_open): Likewise with
	codecvt<wchar_t, char, mbstate_t>.
	(messages<char>::do_close): Implement. Clean cache information.
	(messages<wchar_t>::do_close): Likewise.
	(get_glibc_msg): New. Use dgettext rather than gettext using cached
	domain name associated to catalog id.
	(messages<char>::do_get): Use latter.
	(messages<wchar_t>::do_get): Likewise and use also cached locale
	codecvt<wchar_t, char, mbstate_t> facet to convert wchar_t default
	value to char and the result back to wchar_t.
	* testsuite/22_locale/messages/13631.cc: New.
	* testsuite/22_locale/messages/members/char/2.cc: Use also fr_FR locale
	for charset conversion to get the expected accented character.

From-SVN: r218329
2014-12-03 19:47:00 +00:00
..
config re PR libstdc++/13631 (Problems in messages) 2014-12-03 19:47:00 +00:00
doc status_cxx2011.xml: Update. 2014-12-02 13:26:18 +00:00
include re PR libstdc++/13631 (Problems in messages) 2014-12-03 19:47:00 +00:00
libsupc++ dyncast.cc (__dynamic_cast): Handle mid-destruction dynamic_cast more gracefully. 2014-09-18 08:34:43 -04:00
po Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
python xmethods.py: Add xmethods for associative containers. 2014-11-11 11:35:34 +00:00
scripts bool_set: Use UTF-8 for accented characters. 2014-05-29 15:04:43 +01:00
src re PR libstdc++/64161 (bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std') 2014-12-03 01:34:03 +00:00
testsuite re PR libstdc++/13631 (Problems in messages) 2014-12-03 19:47:00 +00:00
acinclude.m4 re PR libstdc++/49561 ([C++0x] std::list::size complexity) 2014-10-10 16:33:57 +01:00
aclocal.m4
ChangeLog re PR libstdc++/13631 (Problems in messages) 2014-12-03 19:47:00 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013 * ChangeLog-2013: Correct an old entry. 2014-05-26 23:49:19 +02:00
config.h.in acinclude.m4 (GLIBCXX_CHECK_TMPNAM): New check for tmpnam function. 2014-01-23 21:17:15 +00:00
configure Always use PIC option with -shared in libtool 2014-11-21 08:49:17 -08:00
configure.ac re PR libstdc++/43622 (Incomplete C++ library support for __float128) 2014-11-18 20:20:53 +00:00
configure.host configure.host (aix5+): New stanza. 2014-10-30 10:20:50 -04:00
crossconfig.m4 Remove obsolete Solaris 9 support 2014-04-22 12:30:59 +00:00
fragment.am Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
linkage.m4
Makefile.am Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
Makefile.in Commit the vtable verification feature. 2013-08-06 20:38:59 -07:00
README

file: libstdc++-v3/README

New users may wish to point their web browsers to the file
index.html in the 'doc/html' subdirectory.  It contains brief
building instructions and notes on how to configure the library in
interesting ways.