This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/48340] Several wchar_t tests FAIL on IRIX 6.5
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Mar 2011 17:52:55 +0000
- Subject: [Bug libstdc++/48340] Several wchar_t tests FAIL on IRIX 6.5
- Auto-submitted: auto-generated
- References: <bug-48340-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48340
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-29 17:52:44 UTC ---
Here's a simpler test, which should return 1:
#include <locale>
int main()
{
return isspace(L' ', std::locale());
}
if that works, how about this, which should also return 1:
#include <locale>
#include <sstream>
#include <string>
int main()
{
std::wstring s(L" ");
std::wistringstream ss;
return isspace(s[0], ss.getloc());
}