After a few tries, I think I can say the bug is not related to leafpad
per se, but to gvfs and fuse :

I checked the length returned by the "fwrite()" in the save function of
leafpad (file_save_real in file.c) and it returns a value > 4096 bytes.
But the file on the gvfs is only 4096 byte long.

Searching for "gvfs truncate" issues returns lot of results : seems gvfs
is not fully compatible with POSIX api (like the basic and standard
fwrite function used by leafpad or emacs) but should be used with gio
api (probably used by gedit).

There's probably already a bug filled for this, so hopefully a futur
release of gvfs will fix this.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/708829

Title:
  Text truncated when I save a txt file during a sftp session over
  nautilus

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/leafpad/+bug/708829/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to