Re: [gnome-db] Float troubles with non-C locale
- From: Fontana Nicola <ntd users sourceforge net>
- To: Stefan de Konink <skinkie xs4all nl>
- Cc: gnome-db-list gnome org
- Subject: Re: [gnome-db] Float troubles with non-C locale
- Date: Wed, 1 Aug 2007 13:13:01 +0200
On Wednesday 01 August 2007 12:54, you wrote:
> On Wed, 1 Aug 2007, Fontana Nicola wrote:
> > As a temporary
> > workaround I used:
> >
> > setlocale(LC_ALL, "");
> > setlocale(LC_NUMERIC, "C");
> >
> > in main(), and all works properly, of course loosing the locale format
> > for numbers.
>
> Do you do this before or after the init functions of gtk/gda?
int main(int argc, char **argv)
{
setlocale(LC_ALL, "");
setlocale(LC_NUMERIC, "C");
gda_init (PACKAGE_NAME, PACKAGE_VERSION, argc, argv);
...
}
There's no gtk stuff because I did not used gtk.
-- Nicola
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]