pcb

Wrong number formatting with German locale

Bug #1881091 reported by Erik Heinz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
Triaged
Medium
Bert Timmerman

Bug Description

Hi,

when working under a German locale setting (e.g. LANG=de_DE.UTF-8), which I normally do, pcb generates invalid pcb files.

If components include ElementArc definitions, the degree values are formatted with a comma instead of a dot as decimal separator. This is the usual German convention for decimal number formatting, but in this particular case, it is wrong behaviour. As a result, pcb cannot read the file anymore.

This has been tested with version 4.2.2.

For the moment, I work around the problem by setting locale to "C".

Best regards,
Erik

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Erik,

Could you please attach a sample file (.pcb and .fp) which presents the bug ?

Kind regards,

Bert Timmerman.

Changed in pcb:
status: New → Incomplete
Revision history for this message
Erik Heinz (erikheinz) wrote :

Here it is.

I admit that my version pf pcb is self-compiled on a homegrown flavor of Linux. So it might be a compile-time issue. I suspect the problem is caused by using sprintf or similar functions that evaluate the LC_NUMERIC locale.

Best regards,
Erik

Changed in pcb:
status: Incomplete → Triaged
milestone: none → future-bug-fix-release
assignee: nobody → Bert Timmerman (bert-timmerman)
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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