pcb

Can't load designs created with latest snapshot version.

Bug #699081 reported by spth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
Fix Released
Medium
Unassigned

Bug Description

I use the Debian packages. Debian unstable currently
contains version 20050609-1, chich seems to correspond
to the latest snapshot.

I cannot load designs created with this version. Just
saving and loading any (even an empty one) design gives:

2: ERROR parsing file '/home/philipp/SPTH/CVCart/L3/L3.pcb'
    line: 8
    description: 'syntax error'

I can load layouts saved with older versions of pcb.

Tags: sf-bugs
Revision history for this message
spth (spth) wrote :
Revision history for this message
DJ Delorie (djdelorie) wrote :

We added a feature. You'll need a newer version of PCB to
load those files. If you must load older files, try
deleting the DRC line.

We do not guarantee forward compatibility, only backward
compatibility.

Revision history for this message
spth (spth) wrote :

I am not trying to load a file created with a new version
into an old version. I am trying to load the file with the
very samer version with which it was created.

Revision history for this message
DJ Delorie (djdelorie) wrote :

Well, we still added a feature, and you'll still need a
newer PCB to load them. If you must load those files with
an older PCB, try deleting the DRC line.

Revision history for this message
DJ Delorie (djdelorie) wrote :

Having actually LOOKED at the pcb file, I see it's not the
same problem everyone else is having. In this case, your
LOCALE is causing us to print floating point numbers in a
non-LANG_C way, which we can't parse. Not sure what we can
do about that.

Revision history for this message
spth (spth) wrote :

I think the problem are the fprintf calls in src/file.c
Just setting the locale to C will proobably not work well
with future
localization of pcb messages. Setting the locale to C,
writing the file
and setting it back to the original one is not thread-safe
(I don't know
if pcb uses threads though).
One solution would be to use the locale-independent
g_ascii_strtod()
from glib.

Philipp

Revision history for this message
DJ Delorie (djdelorie) wrote :

FYI I've added c_strtod and c_dtostr functions to work
around the locale issue.

Revision history for this message
DJ Delorie (djdelorie) wrote :

I think this one can be closed now - no further complaints in four years.

Peter Clifton (pcjc2)
Changed in pcb:
milestone: future-bug-release → next-bug-release
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.