Donate Share

Geany

Tracker: Bugs

3 Textfile displayed truncated without warning - ID: 2893180
Last Update: Comment added ( eht16 )

Sometimes logfiles contain some strange characters outside the normal ascii
range if the application crashed. It seems geany simply stops loading the
file at the point of the invalid characters without providing a hint that
it did so.

So either geany should report that it did not load the full file or even
better simply load the file and keep the characters if possible.

In the file I am going to attach, geany only loads up to line 249, but
there are more lines in the file...


Dominik ( centic ) - 2009-11-06 10:26

3

Open

None

Nobody/Anonymous

General

None

Public


Comments ( 3 )




Date: 2009-11-23 22:02
Sender: eht16Project AdminAccepting Donations

Addressing your first issue: the attached logfile doesn't open in Geany
because it contains NULL bytes at line 250.
Geany doesn't support files with NULL bytes, Geany is a text editor.

And it does report that it could not open the file in the status messages
window at the bottom.

You can force opening such files by choosing encoding "None" in the file
open dialog but then Geany will only read until to the first NULL byte and
ignore the rest of the file. Anyway, editing non-text files (which are
files with NULL bytes) is not supported.


Date: 2009-11-12 16:05
Sender: ntrelProject AdminAccepting Donations

> I think somehow the very long lines in the testfile are related.

This is a known issue with Scintilla, the editing component. It's not
designed to display very long lines.


Date: 2009-11-06 10:48
Sender: centic

Hmm, some more testing showed that this is some other problem. Sometimes
the file can be loaded and displayed correctly. I think somehow the very
long lines in the testfile are related.

It happens consistently with a big file (4MB), which I cannot attach
here...


Log in to comment.

Attached File ( 1 )

Filename Description Download
samplecutoff.log.gz Sample zip of a file that shows the problem Download

Changes ( 3 )

Field Old Value Date By
priority 5 2009-11-12 16:05 ntrel
summary Textfile displayed truncated without warning on illeg. chars 2009-11-06 10:48 centic
File Added 349752: samplecutoff.log.gz 2009-11-06 10:26 centic