Mail Archives: geda-user/2011/09/23/14:52:07
On Fri, Sep 23, 2011 at 06:31:47PM -0700, Andrew Poelstra wrote:
> On Fri, Sep 23, 2011 at 03:41:22PM +0200, joel silvestre wrote:
> >
> > looks like there is a problem with french localization and decimal
> > separator when saving or loading a PCB file. Once saved files cannot be
> > opened again:
> >
> > ~$ /usr/local/bin/pcb-lesstif Bureau/test1.pcb
> > ERROR parsing file 'Bureau/test1.pcb'
> > line: 8
> > description: 'syntax error, unexpected $undefined, expecting
> > FLOATING or INTEGER'
> >
> > Line 8 is Grid[1000,0 0 0 0]
> >
> > Replacing 1000,0 with 1000.0 makes PCB happy until the next file save.
> > As far as I can see, this problem seem's to affect only this line.
> >
>
> This is a bug in pcb-printf. It should be using '.' as a separator
> regardless of locale, when passed the %mr specifier.
>
Should be fixed now. pcb-printf has a bunch of special-casing for the pcb
file output, most of which is disabled because old versions of pcb would
not be able to read the files.
Turns out we were disabling too much -- we do want to force '.' as a
decimal separator.
--
Andrew Poelstra
Email: asp11 at sfu.ca OR apoelstra at wpsoftware.net
Web: http://www.wpsoftware.net/andrew
- Raw text -