delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2021/01/16/07:53:39

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev
X-Exmh-Isig-CompType: comp
X-Exmh-Isig-Folder: inbox
From: "karl AT aspodata DOT se [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Subject: [geda-user] gnetlist: utf8 in file/dir names
Mime-Version: 1.0
Message-Id: <20210116123351.753158329AB4@turkos.aspodata.se>
Date: Sat, 16 Jan 2021 13:33:51 +0100 (CET)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-user AT delorie DOT com

gsch2pcb fails when there is non-ascii utf8 in file/directory names.
gnetlist-legacy runs perfectly fine.

///

Given the same tgz as in prev. mail "lepton: utf8 in dir names",
I do:

$ tar zxf Test_utf8.tgz 
$ mv Test_utf8 Test_with_ä_
$ tar zxf Test_utf8.tgz 
$ cd Test_utf8
$ gsch2pcb test.sch 
L1: can't find PCB element for footprint inductor-nkl-B5?.fp (value=1u)
So device L1 will not be in the layout.

----------------------------------
Done processing.  Work performed:
No elements to add so not creating test.new.pcb
1 elements could not be found.
$ cd ../Test_with_ä_/
$ gsch2pcb test.sch 
Backtrace:
In ice-9/boot-9.scm:
 160: 9 [catch #t #<catch-closure 7f9ee2c128a0> ...]
In unknown file:
   ?: 8 [apply-smob/1 #<catch-closure 7f9ee2c128a0>]
   ?: 7 [call-with-input-string "(with-fluids ((rc-filename-fluid \"/home/karl/.gEDA/gafrc\")  (rc-config-fluid (eda-config-scm-from-config #f))) (primitive-load \"/home/karl/.gEDA/gafrc\"))" ...]
In ice-9/boot-9.scm:
2412: 6 [save-module-excursion #<procedure 7f9ee2c175d0 at ice-9/eval-string.scm:65:9 ()>]
In ice-9/eval-string.scm:
  44: 5 [read-and-eval #<input: string 7f9ee2bd6d00> #:lang ...]
  37: 4 [lp (with-fluids (# #) (primitive-load "/home/karl/.gEDA/gafrc"))]
In ice-9/eval.scm:
 481: 3 [lp (#<fluid 27> #<fluid 28>) ("/home/karl/.gEDA/gafrc" #f)]
 481: 2 [lp (#<fluid 28>) (#f)]
In unknown file:
   ?: 1 [primitive-load "/home/karl/.gEDA/gafrc"]
   ?: 0 [__py_callable_7f9ee4f13a50__ "."]

ERROR: In procedure __py_callable_7f9ee4f13a50__:
ERROR: Throw to key `python-exception' with args `("exceptions.UnicodeDecodeError" "'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128)")'.
Failed to load RC file [/home/karl/.gEDA/gafrc]
Failed to run gnetlist
$ gnetlist -g PCB test.sch 
Backtrace:
In ice-9/boot-9.scm:
 160: 9 [catch #t #<catch-closure 7f00d3603320> ...]
In unknown file:
   ?: 8 [apply-smob/1 #<catch-closure 7f00d3603320>]
   ?: 7 [call-with-input-string "(with-fluids ((rc-filename-fluid \"/home/karl/.gEDA/gafrc\")  (rc-config-fluid (eda-config-scm-from-config #f))) (primitive-load \"/home/karl/.gEDA/gafrc\"))" ...]
In ice-9/boot-9.scm:
2412: 6 [save-module-excursion #<procedure 7f00d3625570 at ice-9/eval-string.scm:65:9 ()>]
In ice-9/eval-string.scm:
  44: 5 [read-and-eval #<input: string 7f00d35e4d00> #:lang ...]
  37: 4 [lp (with-fluids (# #) (primitive-load "/home/karl/.gEDA/gafrc"))]
In ice-9/eval.scm:
 481: 3 [lp (#<fluid 27> #<fluid 28>) ("/home/karl/.gEDA/gafrc" #f)]
 481: 2 [lp (#<fluid 28>) (#f)]
In unknown file:
   ?: 1 [primitive-load "/home/karl/.gEDA/gafrc"]
   ?: 0 [__py_callable_7f00d5925a50__ "."]

ERROR: In procedure __py_callable_7f00d5925a50__:
ERROR: Throw to key `python-exception' with args `("exceptions.UnicodeDecodeError" "'ascii' codec can't decode byte 0xc3 in position 32: ordinal not in range(128)")'.
Failed to load RC file [/home/karl/.gEDA/gafrc]
$ gnetlist-legacy -g PCB test.sch 
Loading schematic [/home/karl/git/openhw/Test_with_ä_/test.sch]
$

Regards,
/Karl Hammar

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019