[multiple changes]
2002-03-25 Benjamin Kosnik <bkoz@redhat.com> Jakub Jelinek <jakub@redhat.com> * config/locale/gnu/messages_members.h: Correct conditional. * config/locale/gnu/messages_members.cc: Same. * config/locale/gnu/time_members.cc: Same. 2002-03-22 Benjamin Kosnik <bkoz@redhat.com> * config/locale/gnu/messages_members.h: Add __uselocale bits. * config/locale/gnu/messages_members.cc: Same. * config/locale/gnu/time_members.cc: Same. From-SVN: r51333
This commit is contained in:
parent
3f8823a948
commit
0adb396d7f
|
@ -2,12 +2,19 @@
|
|||
|
||||
PR target/5676
|
||||
* acinclude.m4 (GLIBCPP_ENABLE_SJLJ_EXCEPTIONS): Pass -fexceptions
|
||||
explicitely.
|
||||
explicitedly.
|
||||
* aclocal.m4: Rebuilt.
|
||||
* configure: Rebuilt.
|
||||
* configure.target (mcore-*-pe*): Add -frtti -fno-exceptions
|
||||
by default to c++ flags.
|
||||
|
||||
2002-03-25 Benjamin Kosnik <bkoz@redhat.com>
|
||||
Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* config/locale/gnu/messages_members.h: Correct conditional.
|
||||
* config/locale/gnu/messages_members.cc: Same.
|
||||
* config/locale/gnu/time_members.cc: Same.
|
||||
|
||||
2002-03-25 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
|
||||
Paolo Carlini <pcarlini@unitus.it>
|
||||
|
||||
|
@ -15,6 +22,12 @@
|
|||
(test01, test02): Fix i_lit_base arrays, making them
|
||||
independent from the endianness of the platform.
|
||||
|
||||
2002-03-22 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* config/locale/gnu/messages_members.h: Add __uselocale bits.
|
||||
* config/locale/gnu/messages_members.cc: Same.
|
||||
* config/locale/gnu/time_members.cc: Same.
|
||||
|
||||
2002-03-22 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* src/vterminate.cc: Format, -fno-exceptions cleanup.
|
||||
|
|
|
@ -42,11 +42,10 @@ namespace std
|
|||
string
|
||||
messages<char>::do_get(catalog, int, int, const string& __dfault) const
|
||||
{
|
||||
#if 0
|
||||
// Requires glibc 2.3
|
||||
__c_locale __old = uselocale(_M_c_locale_messages);
|
||||
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
|
||||
__c_locale __old = __uselocale(_M_c_locale_messages);
|
||||
const char* __msg = const_cast<const char*>(gettext(__dfault.c_str()));
|
||||
uselocale(__old);
|
||||
__uselocale(__old);
|
||||
return string(__msg);
|
||||
#else
|
||||
const char* __old = setlocale(LC_ALL, _M_name_messages);
|
||||
|
|
|
@ -59,11 +59,10 @@
|
|||
messages<_CharT>::do_get(catalog, int, int,
|
||||
const string_type& __dfault) const
|
||||
{
|
||||
#if 0
|
||||
// Requires glibc 2.3
|
||||
__c_locale __old = uselocale(_M_c_locale_messages);
|
||||
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
|
||||
__c_locale __old = __uselocale(_M_c_locale_messages);
|
||||
char* __msg = gettext(_M_convert_to_char(__dfault));
|
||||
uselocale(__old);
|
||||
__uselocale(__old);
|
||||
return _M_convert_from_char(__msg);
|
||||
#else
|
||||
const char* __old = setlocale(LC_ALL, _M_name_messages);
|
||||
|
|
|
@ -44,8 +44,7 @@ namespace std
|
|||
_M_put_helper(char* __s, size_t __maxlen, const char* __format,
|
||||
const tm* __tm) const
|
||||
{
|
||||
#if 0
|
||||
// Requires glibc 2.3
|
||||
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
|
||||
if (_M_c_locale_timepunct)
|
||||
__strftime_l(__s, __maxlen, _M_c_locale_timepunct, __format, __tm);
|
||||
else
|
||||
|
@ -189,8 +188,7 @@ namespace std
|
|||
_M_put_helper(wchar_t* __s, size_t __maxlen, const wchar_t* __format,
|
||||
const tm* __tm) const
|
||||
{
|
||||
#if 0
|
||||
// Requires glibc 2.3
|
||||
#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
|
||||
if (_M_c_locale_timepunct)
|
||||
__wcsftime_l(__s, __maxlen, _M_c_locale_timepunct, __format, __tm);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue