This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] codecvt<wchar_t, char, mbstate_t>
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Pétur Runólfsson <peturr02 at ru dot is>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 12 Feb 2003 13:41:24 -0600
- Subject: Re: [PATCH] codecvt<wchar_t, char, mbstate_t>
- References: <07D05A69A3D0C14FAEA60C3ACE8E5564028D0DA0@nike.hir.is>
On Sun, 9 Feb 2003 12:55:48 -0000
Pétur Runólfsson <peturr02@ru.is> wrote:
>It is better to hardcode
>the locale name (using only locales from the official list)
>and then generate a log message that includes the name of the
>locale if it isn't installed.
Yes. This is pretty much what happens now, only it's a hard error. The
test log does contain the information though, due to the exception being
thrown and printed by the verbose terminate handler.
The trick is to get this to be optional, so for ports like AIX, etc,
that don't have this stuff they can configure to not deal with locales
besides "C".
I don't have any ideas how to do this, BTW, but I think conditionalizing
the central routine in testsuite_hooks that does this, and having it not
throw, or throw and teaching dejagnu to ignore error returns of -5 or
whatever, is the way to go.
-benjamin