funny characters in paths

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

funny characters in paths

chrysn
hello openscad developers,

openscad 2011.12 seems to have a problem with funny characters (i tried
umlauts) in path names with inclusions.

my relevant environment variables are

$ export LANG=en_GB.UTF-8

and you can generate a setup that shows the problematic behavior with

$ mkdir schön
$ echo "include <b.scad>;" > schön/relative.scad
$ echo "include <../schön/b.scad>;" > schön/not_that_relative.scad
$ echo "sphere();" > schön/b.scad
$ openscad schön/relative.scad # fails, printing wrongly formatted paths in the console
$ openscad schön/not_that_relative.scad # fails too, printing wrongly formatted paths
$ cd schön
$ openscad relative.scad # fails, printing correctly formatted paths
$ openscad not_that_relative.scad # WORKS
$ openscad -o test.dxf relative.scad # fails, printing only the filename
$ openscad -o test.dxf not_that_relative.scad # fails, printing only the filename

with LANG=C, even the working example fails.

regards
chrysn

--
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: funny characters in paths

donbright
if i remember correctly, path handling after 2011.12 has been replaced
by Boost instead of QT. does your example also break on git HEAD?

-DB

On Sat, May 12, 2012 at 8:45 AM, chrysn <[hidden email]> wrote:

> hello openscad developers,
>
> openscad 2011.12 seems to have a problem with funny characters (i tried
> umlauts) in path names with inclusions.
>
> my relevant environment variables are
>
> $ export LANG=en_GB.UTF-8
>
> and you can generate a setup that shows the problematic behavior with
>
> $ mkdir schön
> $ echo "include <b.scad>;" > schön/relative.scad
> $ echo "include <../schön/b.scad>;" > schön/not_that_relative.scad
> $ echo "sphere();" > schön/b.scad
> $ openscad schön/relative.scad # fails, printing wrongly formatted paths in the console
> $ openscad schön/not_that_relative.scad # fails too, printing wrongly formatted paths
> $ cd schön
> $ openscad relative.scad # fails, printing correctly formatted paths
> $ openscad not_that_relative.scad # WORKS
> $ openscad -o test.dxf relative.scad # fails, printing only the filename
> $ openscad -o test.dxf not_that_relative.scad # fails, printing only the filename
>
> with LANG=C, even the working example fails.
>
> regards
> chrysn
>
> --
> To use raw power is to make yourself infinitely vulnerable to greater powers.
>  -- Bene Gesserit axiom
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
>

Reply | Threaded
Open this post in threaded view
|

Re: funny characters in paths

chrysn
On Sat, May 12, 2012 at 08:54:15AM -0500, Don Bright wrote:
> On Sat, May 12, 2012 at 8:45 AM, chrysn <[hidden email]> wrote:
> > openscad 2011.12 seems to have a problem with funny characters (i tried
> > umlauts) in path names with inclusions.
>
> if i remember correctly, path handling after 2011.12 has been replaced
> by Boost instead of QT. does your example also break on git HEAD?

my bad, i already had a more recent version installed. just updated to
HEAD (67eb2eb), still the same problem.

regards
chrysn

--
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom

signature.asc (836 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: funny characters in paths

kintel
Administrator
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On May 12, 2012, at 14:27 PM, chrysn wrote:

> my bad, i already had a more recent version installed. just updated to
> HEAD (67eb2eb), still the same problem.
>
Thanks for the report. Will be discussed here: https://github.com/openscad/openscad/issues/113

 -Marius

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAk+y+nYACgkQF4TaqdSZNKRtfwCeLqYPZdCy7z03iTqwNKCkAVj2
sAkAnArwP1jBx8PRj+1wDUJYyVqsB1aT
=svKx
-----END PGP SIGNATURE-----