> Date: Tue, 11 Oct 2011 12:11:11 +0200 > From: Stefan Sperling <[email protected]> > > On Thu, Sep 22, 2011 at 11:50:31AM +0200, Mark Kettenis wrote: > > > Date: Wed, 21 Sep 2011 21:25:40 +0200 > > > From: Stefan Sperling <[email protected]> > > > > > > On Wed, Sep 21, 2011 at 07:59:08PM +0200, Stefan Sperling wrote: > > > > On Wed, Sep 21, 2011 at 06:13:31PM +0200, Mark Kettenis wrote: > > > > > wide character support in that version of libstdc++ was an > > > > > all-or-nothing thing, and I don't think wer should change that. > > > > > > > > Fine. I'll leave that alone until we have all the functions it wants. > > > > > > On second thought, wouldn't leaving this bit out mean that C++ > > > applications won't be able to use wscanf on gcc3 architectures? > > > > Not really. They just won't be in the std:: namesapce. But you can > > still access them in the global namespace. > > > > The thing I'm worried about is code that makes assumptioms based on > > the _GLIBCPP_USE_WCHAR_T define, so I think it is best to keep things > > as they are. > > The plan is now to add wscanf and wcsftime at the same time. > So this makes all the wide character functions currently guarded > by _GLIBCPP_USE_WCHAR_T available.
Great. > Should we make all these functions visible in the std:: namespace > when we add the new functions to libc? And bump gcc3 libstdc++ as well? > Do we set _GLIBCPP_USE_WCHAR_T during the libstdc++ build to do so? As far as I know this will all happen automatically. For the gcc3 libstdc++ we run the standard autoconf script, which should now pick up the new functions. But since all of this is pure magic, somebody should really configure libstdc++ on a gcc3 system that has the new functions in libc and compare the generated c++config.h with the old one, to check if anything changed. > Can this also be done later, as a seperate step, after bumping libc? Since it will happen automagically, it should be done at the same time.
