Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok I don't have an answer for you, but I have some clues:</p> <ul> <li>This isn't limited to OS X 10.6. I get the same result on a 10.4 machine.</li> <li>I looked at the <a href="http://gcc.gnu.org/viewcvs/trunk/libstdc%2B%2B-v3" rel="noreferrer">GCC source for libstdc++</a> and hunted around for <code>_S_create_c_locale</code>. What I found is on line 143 of <a href="http://gcc.gnu.org/viewcvs/trunk/libstdc%2B%2B-v3/config/locale/generic/c_locale.cc?revision=98492&amp;view=markup" rel="noreferrer">config/locale/generic/c_locale.cc</a>. The comment there says "Currently, the generic model only supports the "C" locale." That's not promising. In fact if I do <code>LANG=C</code> the runtime error goes away, but <em>any</em> other value for <code>LANG</code> I try causes the same error, regardless of what arguments I give to the <code>locale</code> constructor. (I tried <code>locale::classic()</code>, "C", "", and the default). This is true as far back as <a href="http://gcc.gnu.org/viewcvs/tags/gcc_4_0_0_release/libstdc%2B%2B-v3/config/locale/generic/c_locale.cc?revision=98492&amp;view=markup" rel="noreferrer">GCC 4.0</a></li> <li>That same page has a reference to <a href="http://gcc.gnu.org/ml/libstdc++/2003-02/msg00345.html" rel="noreferrer">libstdc++ mailing list discussion</a> on this topic. I don't know how fruitful it is: I only followed it a little way down, and it gets very technical very fast.</li> </ul> <p>None of this tells you why the default locale on 10.6 wouldn't work with <code>std::locale</code> but it does suggest a workaround, which is to set <code>LANG=C</code> before running the program.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload