Menu

local is just a pipe-dream?

Anonymous
2002-10-13
2012-09-26
  • Anonymous

    Anonymous - 2002-10-13

    I've been trying many different sources for locales, different compilers, different web pages for examples etc.  It seems that it's impossible to write a portable facet to use in a locale.  Or am I missing something?

     
    • Anonymous

      Anonymous - 2002-10-14

      This should compile and run!

      #include <locale>
      #include <iostream>

      using namespace ::std;

      int main()
      {
      locale any;
      cout << "locale: " << any.name() << endl;
      }

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.