pcb

Gerber export does not handle unicode characters

Bug #1670027 reported by Jiri Cejka on 2017-03-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
Undecided
Unassigned

Bug Description

When a pcb file is ready to be exported to Gerber and when it is done the gerber file NAME.fab.gbr does not properly handle unicode characters in Author and Date fields. I found that author value is grabbed from operating system (my is Debian Linux) using pcb_author() function in src/misc.c file and processed into gerber output in src/print.c file. If the username contains some unicode character like üöäÜÄÖßČěščřžáýíéóň etc. there is block character placed into NAME.fab.gbr file instead. The same is in the Date field.

Jiri Cejka (jirkacejka) wrote :
Chad Parker (parker-charles) wrote :

Thanks for your bug report.

Unfortunately, as you've noted, pcb presently doesn't have the extended character sets. The block that you see is the default symbol used when pcb doesn't have a symbol for the character.

UTF-8 support is something we've been talking about adding, possibly at the same time that we incorporate the improved font branch. But the realization of that may be some time off.

While it's not a real solution, you can at least sort of work around the author problem by using the --fab-author switch on the command line. If you specify --fab-author Yourname without using any extended characters, then you at least don't get the blocks.

--Chad

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers