gnetlist crashes on search locale filenames

Bug #1272341 reported by Alexey Kharikovskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gEDA
Fix Released
Undecided
Unassigned

Bug Description

Hello all.
At present, if in "component-library-search" path (declared in gafrc) exists files with NON ascii filenames (locale of filenames non en_US), the gnetlist program terminated with error:

 leha@work ~/local_repo/geda-gaf-git $ gnetlist
ERROR: Failed to load RC file [/home/leha/.gEDA/gafrc]: ERROR: Invalid path ~S. "/home/leha/.gEDA/symbols/egor/sym/??293????1-1.sym"

The attached simplest patch resolve this problem and makes possible using locale environment.

Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :
Changed in geda:
status: New → Fix Committed
Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote : Re: [Bug 1272341] Re: gnetlist crashes on search locale filenames

Thanks for commit :)

2014/1/27 Vladimir Zhbanov <email address hidden>

> ** Changed in: geda
> Status: New => Fix Committed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1272341
>
> Title:
> gnetlist crashes on search locale filenames
>
> Status in GPL Electronic Design Automation tools:
> Fix Committed
>
> Bug description:
> Hello all.
> At present, if in "component-library-search" path (declared in gafrc)
> exists files with NON ascii filenames (locale of filenames non en_US), the
> gnetlist program terminated with error:
>
> leha@work ~/local_repo/geda-gaf-git $ gnetlist
> ERROR: Failed to load RC file [/home/leha/.gEDA/gafrc]: ERROR: Invalid
> path ~S. "/home/leha/.gEDA/symbols/egor/sym/??293????1-1.sym"
>
> The attached simplest patch resolve this problem and makes possible
> using locale environment.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/geda/+bug/1272341/+subscriptions
>

Revision history for this message
Peter TB Brett (peter-b) wrote :

Hi Alexey - what version of Guile are you using?

I'm pretty sure that this problem is due to running Guile 1.8.x rather than Guile >= 2.0.

The locale settings that this patch sets are *not correct*, and I don't think it should have been committed.

Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :

Hi Peter.
I use Guile 2.0.9

dom ~ # guile --version
guile (GNU Guile) 2.0.9
Copyright (C) 2013 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

2014-02-02 Peter TB Brett <email address hidden>:

> Hi Alexey - what version of Guile are you using?
>
> I'm pretty sure that this problem is due to running Guile 1.8.x rather
> than Guile >= 2.0.
>
> The locale settings that this patch sets are *not correct*, and I don't
> think it should have been committed.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1272341
>
> Title:
> gnetlist crashes on search locale filenames
>
> Status in GPL Electronic Design Automation tools:
> Fix Committed
>
> Bug description:
> Hello all.
> At present, if in "component-library-search" path (declared in gafrc)
> exists files with NON ascii filenames (locale of filenames non en_US), the
> gnetlist program terminated with error:
>
> leha@work ~/local_repo/geda-gaf-git $ gnetlist
> ERROR: Failed to load RC file [/home/leha/.gEDA/gafrc]: ERROR: Invalid
> path ~S. "/home/leha/.gEDA/symbols/egor/sym/??293????1-1.sym"
>
> The attached simplest patch resolve this problem and makes possible
> using locale environment.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/geda/+bug/1272341/+subscriptions
>

Peter TB Brett (peter-b)
Changed in geda:
milestone: none → 1.9.1
Peter TB Brett (peter-b)
Changed in geda:
status: Fix Committed → Fix Released
Revision history for this message
Alexey Kharikovskiy (svetonomer) wrote :

Big thanks :)

2014-03-09 3:15 GMT+04:00 Peter TB Brett <email address hidden>:

> ** Changed in: geda
> Status: Fix Committed => Fix Released
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1272341
>
> Title:
> gnetlist crashes on search locale filenames
>
> Status in GPL Electronic Design Automation tools:
> Fix Released
>
> Bug description:
> Hello all.
> At present, if in "component-library-search" path (declared in gafrc)
> exists files with NON ascii filenames (locale of filenames non en_US), the
> gnetlist program terminated with error:
>
> leha@work ~/local_repo/geda-gaf-git $ gnetlist
> ERROR: Failed to load RC file [/home/leha/.gEDA/gafrc]: ERROR: Invalid
> path ~S. "/home/leha/.gEDA/symbols/egor/sym/??293????1-1.sym"
>
> The attached simplest patch resolve this problem and makes possible
> using locale environment.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/geda/+bug/1272341/+subscriptions
>

Revision history for this message
gpleda.org commit robot (gpleda-launchpad-robot) wrote :

Bug was fixed by a commit
git master commit 0019cad893f8b2ed0a3be879e7e373564013906e
http://git.geda-project.org/geda-gaf/commit/?id=0019cad893f8b2ed0a3be879e7e373564013906e

commit 0019cad893f8b2ed0a3be879e7e373564013906e
Author: Vladimir Zhbanov <email address hidden>
Commit: Vladimir Zhbanov <email address hidden>

    gnetlist: i18n

    Closes-bug: lp-1272341

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.