> Date: Tue, 20 Sep 2011 18:09:34 +0200 > From: Stefan Sperling <[email protected]> > > Here are corresponding libstdc++ changes, also without bumps. > > The gcc3 version will have to be revisited once we also get wcsftime. > But for now it should work like this (the configure script doesn't define > _GLIBCPP_USE_WCHAR_T unless it finds all wchar functions it wants). > > Not sure if the c_compatibility change is really needed. > We didn't update it for wprintf (by accident?)
Need to look into this. > Can someone run this (together with the libc wscanf diff) through a build > on gcc2 and gcc3 architectures? I don't think you should commit the following gcc3: > Index: lib/libstdc++/libstdc++/include/c_std/std_cwchar.h > =================================================================== > RCS file: /cvs/src/gnu/lib/libstdc++/libstdc++/include/c_std/std_cwchar.h,v > retrieving revision 1.4 > diff -u -p -r1.4 std_cwchar.h > --- lib/libstdc++/libstdc++/include/c_std/std_cwchar.h 28 Apr 2011 > 17:41:37 -0000 1.4 > +++ lib/libstdc++/libstdc++/include/c_std/std_cwchar.h 20 Sep 2011 > 14:30:48 -0000 > @@ -141,18 +141,18 @@ namespace std > using ::fputws; > using ::fwide; > #if defined(_GLIBCPP_USE_WCHAR_T) > + using ::wcsftime; > +#endif > using ::fwscanf; > using ::swscanf; > using ::vfwscanf; > using ::vswscanf; > using ::vwscanf; > - using ::wcsftime; > using ::wcstod; > using ::wcstof; > using ::wcstol; > using ::wcstoul; > using ::wscanf; > -#endif > using ::fwprintf; > using ::swprintf; > using ::vfwprintf; wide character support in that version of libstdc++ was an all-or-nothing thing, and I don't think wer should change that. Get working on wcsfstime() ;)
