gcc/libstdc++-v3/testsuite
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
..
17_intro
18_support C++11 explicitly forbids macros for bool, true and false. 2014-10-24 21:56:40 +01:00
19_diagnostics
20_util re PR libstdc++/63840 (std::function copy constructor deletes an uninitialized pointer if new fails) 2014-12-01 13:49:20 +00:00
21_strings
22_locale re PR libstdc++/13631 (Problems in messages) 2014-12-03 19:47:00 +00:00
23_containers Fix std::deque move construction with non-equal allocators. 2014-11-10 22:44:07 +00:00
24_iterators
25_algorithms re PR libstdc++/61107 (stl_algo.h: std::__inplace_stable_partition() doesn't process the whole data range) 2014-11-11 21:21:10 +00:00
26_numerics
27_io XFAIL 27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc on Solaris (PR libstd++/64054) 2014-11-26 13:22:27 +00:00
28_regex re PR libstdc++/63920 (Any regular expression should not match an empty sequence if match_not_null is specified) 2014-11-25 05:43:04 +00:00
29_atomics atomic_base.h: Avoid including <stdbool.h>. 2014-10-24 12:54:43 +00:00
30_threads Define *_at_thread_exit() functions. 2014-12-02 01:51:25 +00:00
abi
backward
config
data
decimal
experimental 1.cc: Remove unused header. 2014-11-12 00:34:19 +00:00
ext Add -Wno-deprecated to dg-options. 2014-11-12 10:32:17 +00:00
lib Fix race in libstdc++ testsuite 2014-10-19 21:07:29 +00:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters Ensure single 'UNSUPPORTED: prettyprinters.exp' message 2014-11-25 20:30:20 +00:00
libstdc++-xmethods associative-containers.cc: Add new file missed from earlier commit. 2014-11-11 22:10:21 +00:00
performance
tr1 re PR libstdc++/63840 (std::function copy constructor deletes an uninitialized pointer if new fails) 2014-12-01 13:49:20 +00:00
tr2
util re PR libstdc++/43622 (Incomplete C++ library support for __float128) 2014-11-18 20:20:53 +00:00
Makefile.am
Makefile.in