Open dialog crashes when in non-ASCII path name

Bug #167923 reported by Hadmut-users
6
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
High
Jon A. Cruz
inkscape (Debian)
Fix Released
Unknown

Bug Description

Hi,

Inkscape crashes when the pathname (CWD) contains a
non-UTF8-character outside ASCII, e.g. german umlaut
taken from ISO-8859-1

make a Directory named Täst, copy an existing svg file
into it, cd into it, run inkscape with the given file
as a parameter -> crash

(Debian, inkscape 0.44-1)

regards
Hadmut

Tags: crash
Revision history for this message
Ideogram (ideogram) wrote :

I could not reproduce this behaviour in the latest
development build on Ubuntu Dapper Drake.

ideogram

Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

How do you know it is a non-UTF-8 character? Is your
filesystem encoded as other than UTF-8?

Also, do GNOME and gedit work correctly with the same filename?

Revision history for this message
Bryce Harrington (bryce) wrote :

Originator: NO

hadmut, can you provide the answers joncruz has requested?

Can anyone else reproduce the problem as reported?

If neither of these can be done within about a month, this bug should be
closed as non reproduceable.

Revision history for this message
Hadmut-users (hadmut-users) wrote :

Originator: YES

Filenames were in Latin1.

I created that file tree at a time where Latin1 was the common way to use
german characters.

There are still too many programs not supporting UTF, that's why I still
have most thins in Latin1.

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

Reproduced on linux with KOI8 filesystem. JonCruz, please have a look. No
need even to have a file; create a dir with non-ascii name, cd into it, run
inkscape there, ctrl+o => crash:

terminate called after throwing an instance of 'Glib::ConvertError'

Revision history for this message
Ishmal (ishmal) wrote :

Originator: NO

Did a bit of work. stat() was failing on the non-ascii file name. Now
sp_open_document() does not show the document in preview, but it doesn't
crash. But there is a crash when an svg contains an image. However, if
we skip the preview, the document loads into Inkscape.

Some progress, but more to go.

Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

this one still crashes as before - ishmal, you probably meant that comment
for http://sourceforge.net/support/tracker.php?aid=1684952 where i moved it

hash (hash-g)
Changed in inkscape:
status: New → Confirmed
Revision history for this message
jeannich (jeannich) wrote :

I think this bug has disappeared at least in version "Inkscape0803141639". On a Japanese Windows XP I can now open and save files into paths containing japanese caracters (which was indeed making inkscape crash in previous versions)

Revision history for this message
Krzysztof Kosinski (tweenk) wrote :

@jeannich: This is not related because on Windows all path names are represented as UTF-8 in GTK and Glib. This problem is UNIX-only. The reason for this bug is that we store pathnames as UTF-8. This will obviously break when using an UNIX system with a non-UTF-8 locale.

To really fix this problem, a thorough refactoring of io/sys.h and all code that deals with path names is needed.

Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote :

I'm using Ubuntu 8.10 (64-bit) with spanish locale (the character encoding is the same that the reporter uses) and can save and retrieve files in a folder called Täst (I used the same name trying to reproduce the bug).
I couldn't reproduce the bug using Inkscape 0.46+devel

Should we close this bug as fixed?

Revision history for this message
bbyak (buliabyak) wrote :

i still get

glibmm-CRITICAL **:
unhandled exception (type Glib::Error) in signal handler:
domain: g_convert_error
code : 1
what : Invalid byte sequence in conversion input

and file is NOT saved when saving to a Cyrillic filename inside a Cyrillic-named dir, system encoding is KOI8-R, Ubuntu 6.06

Revision history for this message
Guillermo Espertino (Gez) (gespertino-gmail) wrote :

Bulia: Is it possible that the problem is caused by the version of glib that ubuntu dapper ships? That version of Ubuntu reached its end of life and it's unsupported.

(sorry if the question is stupid. Just wondering).

jazzynico (jazzynico)
tags: added: crash
Revision history for this message
su_v (suv-lp) wrote :

Removing bug watch to old bug tracker -> related report for sf #1684952 now is

Bug #168502 “preview doesn't work in folders with extended ascii characters”
<https://bugs.launchpad.net/inkscape/+bug/168502>

Revision history for this message
su_v (suv-lp) wrote :

Can this crash still be reproduced with current 0.47 or 0.48+devel (trunk) on linux with the described steps?

> make a Directory named Täst, copy an existing svg file
> into it, cd into it, run inkscape with the given file
> as a parameter -> crash

Revision history for this message
S. Fischi (fischer-donkliniken) wrote :

Hello
I have the same problem on W7x86. The opendialog crashes. My path is on a server with unc-mapping (\\server\fischi$)

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Can anyone confirm that this is still a problem in Inkscape 0.47/0.48? I have linked an old Debian report about this issue, which is still open.

@Jon - Are you still planning to work on this?

Changed in inkscape:
status: Confirmed → Incomplete
Changed in inkscape (Debian):
status: Unknown → Confirmed
Revision history for this message
Kris (kris-degussem) wrote :

Closing bug as there is no further reaction.
If the bug reappears, feel free to revert the status.

Changed in inkscape:
status: Incomplete → Invalid
Changed in inkscape (Debian):
status: Confirmed → Fix Released
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.