Bug 169907 - a text file with only one line and no newlines appears blank
Summary: a text file with only one line and no newlines appears blank
Status: RESOLVED DUPLICATE of bug 167767
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-27 03:00 UTC by Felix
Modified: 2008-08-27 12:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix 2008-08-27 03:00:11 UTC
Version:            (using KDE 4.1.0)
OS:                Linux
Installed from:    Unlisted Binary Package

Try this:

echo -n "foo" > bar
kwrite bar

kwrite does not display the binary file warning, but it does not display any text either. The editor window is blank. You can type in it, but the text you type is invisible and if you click on the line, the cursor goes back to the beginning and it appears as if your text is gone.

If you then save the file, all the text you typed is prepended to the original line of text. If you reopen it, the same behaviour occurs (because the file still lacks a newline character).

On the console I see this:

QThreadStorage: Thread 0x8885908 exited after QThreadStorage 2147483645 destroyed

...but only after I exit kwrite, so it may not be related.
Comment 1 Andreas Pakulat 2008-08-27 12:33:35 UTC

*** This bug has been marked as a duplicate of bug 167767 ***