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

Re: gEDA: GSpiceUI Version 0.5.76



Hi All,

I know next to nothing about localization so can't offer an instant fix.
However, I tried inserting the line suggested by Tomasz Motylewski
into the constructor for the AppGSpiceUI class and nothing evil
happened so maybe this would be worth a try. I don't have access to
a non-English version of Linux so if someone could do the test and 
let me know how it goes I'd appreciate it.

Edit the file src/AppGSpiceUI.cpp, the constructor for AppGSpiceUI
should look as follows:

AppGSpiceUI::AppGSpiceUI( void )
{
  setlocale(LC_NUMERIC, "C" );
}

By the way has anyone tried importing multiple gschem schematic
files and running simulations. Does it work OK?

Regards

Mike Waters

On Thursday 16 September 2004 19:54, Tomasz Motylewski wrote:
> gerbv had "," problem as well. We had done
>
> setlocale(LC_NUMERIC, "C" );
>
> in the function doing the input output. Warning: *scanf %f is affected as
> well. Warning: GTK seems to change locale itself, so setlocale should be
> done after GTK initialization.
>
> > Just one tiny problem: I got trouble with the localisation stuff. In the
> > German version of Linux your program writes out a "," instead of "." for
> > the decimal point.
> > This ends up in the following lines:
> >
> > * Simulation Commands
> > .OPTIONS TEMP=27,00 TNOM=27,00
> >
> > My work around is to call from the command line:
> > LC_NUMERIC=C ../bin/gspiceui
> >
> > There must be a compiler option or somthing else to switch.
>
> Best regards,
> --
> Tomasz Motylewski