[haiku-development] std::locale

Hi!

(With gcc4) This program outputs "1" but I'd rather it output "0":


#include <locale>
#include <iostream>

using namespace std;

int main()
{
   std::locale l("");
   cout << (l == std::locale::classic()) << endl;
   return 0;
}

Is there anything obvious I'm missing like gcc having disabled support
for this? How could I get a list of available locales?

Regards,
Adrian.


-- 
Czy ty orzeł, czy ty kawka? -wkrótce zdłabi kaszel, czkawka.
Śmierć szyję zaszyje.

Other related posts:

  • » [haiku-development] std::locale - Adrian Panasiuk