This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] codecvt<wchar_t, char, mbstate_t>


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]