[haiku-development] std::locale

  • From: Adrian Panasiuk <adek336@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 29 Mar 2009 05:02:47 +0200

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