errors on some filenames
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Undecided
|
Unassigned |
Bug Description
Steps:
create a valid svg
rename it using some bashism (but still a valid file name)
try to open it, inkscape errors.
juser@trist:~$ echo "<svg />" > x.svg
juser@trist:~$ inkscape x.svg
(file opens, no errors)
juser@trist:~$ cp x.svg $'\xdf.svg'
juser@trist:~$ inkscape $'\xdf.svg'
** (inkscape:5942): CRITICAL **: Inkscape:
simple example of some other app being able to accept this file name on the command line, open the file and read the data:
juser@trist:~$ file $'\xdf.svg'
�.svg: ASCII text
And maybe related: saving a png using the same bashism results in a different file name:
juser@trist:~$ inkscape x.svg --export-png $'\xdf.png'
Background RRGGBBAA: ffffff00
Area 0:0:744.094:1052.36 exported to 744 x 1052 pixels (90 dpi)
Bitmap saved as: �.png
juser@trist:~$ ls ?.svg | hexdump -C
00000000 df 2e 73 76 67 0a 78 2e 73 76 67 0a |�.svg.x.svg.|
juser@trist:~$ ls ??.png | hexdump -C
00000000 c3 9f 2e 70 6e 67 0a |�..png.|
In the above line, I would expect df, not c3 9f
Fairly vinalla ubuntu install, inkscape from trunk ppa (but not sure how current it really is)
juser@trist:~$ apt-cache policy inkscape
inkscape:
Installed: 0.48+devel+
Candidate: 0.48.1-2ubuntu2
Version table:
0.
500 http://
*** 0.48+devel+
500 http://
100 /var/lib/
juser@trist:~$ uname -a
Linux trist 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:17:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
similar bugs:
https:/ /bugs.launchpad .net/inkscape/ +bug/167923 Open dialog crashes when in non-ASCII path name
https:/ /bugs.launchpad .net/inkscape/ +bug/166340 yet another crash with non-ascii filenames
juser@trist:~$ locale "en_US. UTF-8" "en_US. UTF-8" "en_US. UTF-8" "en_US. UTF-8" "en_US. UTF-8" "en_US. UTF-8" "en_US. UTF-8" "en_US. UTF-8" "en_US. UTF-8" "en_US. UTF-8" "en_US. UTF-8" ON="en_ US.UTF- 8"
LANG=en_US.UTF-8
LANGUAGE=en_US:
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=