Re: [gnome-db] Float troubles with non-C locale



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]