After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 497641 - Files with a broken encoding crash bluefish (cvs) or confuse (stable) it
Files with a broken encoding crash bluefish (cvs) or confuse (stable) it
Status: RESOLVED FIXED
Product: bluefish
Classification: Other
Component: application
development (SVN TRUNK)
Other Linux
: Normal critical
: ---
Assigned To: Bluefish Maintainer(s)
Bluefish Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2007-11-17 13:42 UTC by Daniel Leidert
Modified: 2008-01-12 08:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Backtrace (1.58 KB, text/plain)
2007-11-17 13:44 UTC, Daniel Leidert
Details

Description Daniel Leidert 2007-11-17 13:42:56 UTC
Hi, I got this report:
https://bugs.launchpad.net/ubuntu/+source/bluefish/+bug/163307

When I tested the attached file with the current bluefish-unstable version, bf crashed for me. The backtrace is attached.

When I tested the attached files with the current stable tree, bf opened the file, but the user complains about the way and bf doesn't let the user specify a different encoding via Document > Character Encoding. Saving then of course complains too.
Comment 1 Daniel Leidert 2007-11-17 13:44:54 UTC
Created attachment 99252 [details]
Backtrace

Backtrace for the current bluefish-unstable.
Comment 2 Olivier Sessink 2007-11-18 17:00:04 UTC
in the file->open dialog you can specify the encoding when opening files. It opens fine on my machine with 8859-2 as encoding. How did it crash on your box? Can you reproduce it?

Comment 3 Olivier Sessink 2007-11-18 17:15:46 UTC
b.t.w. your explanation about the encoding in preferences was not entirely correct. The encoding is tried in several steps:

1) encoding set in a  <meta> tag is searched and tried

2) the last encoding set in this session (or project) is tried. If you manually set the encoding of a document in file->open this sets the session encoding too.

3) the encoding for new files (as set in the preferences) is tried

4) UTF-8 is tried

5) any encoding available in the preferences is tried
Comment 4 Daniel Leidert 2007-11-18 17:50:22 UTC
(In reply to comment #2)
> in the file->open dialog you can specify the encoding when opening files. It
> opens fine on my machine with 8859-2 as encoding. How did it crash on your box?
> Can you reproduce it?

Yes. I normally use UTF-8 there as fallback. With this value, bf-unstable crashes and bf stable opens the file as ISO-8859-1 (not ISO-8859-2) for me.
Comment 5 Daniel Leidert 2007-11-18 17:59:35 UTC
Hm? Yesterday bf-unstable crashed reprodibly for me. Today it opens the file without a crash.
Comment 6 Olivier Sessink 2008-01-12 08:25:29 UTC
the bug is fixed, it is unrelated to encoding. it was a classical programming error that I should have seen earlier...