help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

locales and stl


From: dubourg
Subject: locales and stl
Date: 26 Apr 2006 11:13:16 -0700
User-agent: G2/0.2

Hello all,

I am currently struggling with what appears to be a locale issue with
gcc 3.3.5 on Red Hat Enterprise Linux AS release 3 (Taroon) (kernel
2.4.21-4.ELsmp). Specifically, when I compile my project with LANG and
LANGVAR environmental variables set to en_US.UTF-8, the executable
behaves correctly. However when unset those variables, compile and run
the project, it segfaults in the first call to the [] operator of an
initialized std::map<std::string, Foo *>. I've checked what the default
locale is in that case via cout.getLoc().name() and it reports "C"

I can't post my project, so I understand that you can't provide
specific answers. However, from what I've described, can anyone give me
some general suggestions and/or point me to a resource where I can
learn more about the inner workings of g++ regarding locales?

Thanks for your help,
Joe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]