[PATCH] codecvt<wchar_t, char, mbstate_t>
Benjamin Kosnik
bkoz@redhat.com
Wed Feb 12 19:42:00 GMT 2003
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
More information about the Libstdc++
mailing list