locale setting with .so
From: Kyle Kolander (kkolander_at_hotmail.com)
Date: 05/26/05
- Next message: John Gordon: "Re: strange behaviour?"
- Previous message: Tom Anderson: "Re: Suggestions for custom application-layer protocol?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 May 2005 12:16:26 -0500
We have a problem with output from streams with numeric types:
// proper includes and additional code here
int x = 2552123;
cout << x;
This results in output like this: 2,552,123
Same behavior with stringstreams.
I am pretty certain this is due to locale settings...
This only happens when we link with shared library files (.so), the static
libraries (.a) work fine.
In main() the output is correct "2552123", but inside of our class source
files, it is "2,552,123".
Something must be setting the locale betwen that time.
I was referred here from comp.lang.c++ as we are developing on AIX with
Visual Age 6.0.
Any insights/suggestions what could be happening here? How could we be
getting different
locale settings with a .so file than with a .a file when both are built with
the same code.
Thanks,
Kyle
- Next message: John Gordon: "Re: strange behaviour?"
- Previous message: Tom Anderson: "Re: Suggestions for custom application-layer protocol?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|