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 134189 - should be able to read/write compressed files
should be able to read/write compressed files
Status: RESOLVED OBSOLETE
Product: gedit
Classification: Applications
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 389718 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-02-12 07:45 UTC by Stephen Kennedy
Modified: 2010-08-29 11:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stephen Kennedy 2004-02-12 07:45:31 UTC
Most docs in /usr/share/doc are gzipped and to view them in gedit
requires first opening fileroller, then gedit.

gnome-vfs already supports this but gedit does not seem to use it.
i.e. the following fails.
%gedit 'file:/usr/share/doc/HOWTO/en-txt/i810-HOWTO.gz#gzip'
Comment 1 Paolo Maggi 2004-02-12 09:34:37 UTC
Weird, it should work (at least it worked when I wrote and tested the
code).
Are you sure the URI you are passing to gedit is in the right format?
Comment 2 Stephen Kennedy 2004-02-12 11:22:03 UTC
I think so - I got the syntax from.
http://developer.gnome.org/doc/API/gnome-vfs/writing-modules.html

Note that some uris work ok. For instance http://....
Comment 3 Paolo Maggi 2004-02-12 11:48:27 UTC
Have you tried with: file:/// ?
Or with #gzip: ? Or both?
IIRC, there is some problem in the gnome-vfs doc regarding this king
of URIs.
Comment 4 Stephen Kennedy 2004-02-12 12:54:54 UTC
Neither file:/ nor file:/// work for me.

Do you mean theres some alternative #gzip syntax to try?

'''
Could not open the file "file:///home/stephen/flight.txt.gz#gzip"
because gedit has not been able to automatically detect the character
coding.

Please, check that you are not trying to open a binary file and try
again selecting a character coding in the 'Open File...' (or 'Open
Location') dialog.
'''
Comment 5 Paolo Borelli 2004-07-13 10:22:43 UTC
I'd be inclined to close this bug... the problem is in gnome-vfs's gzip support
which is known to be incomplete/broken.

Or do other gnome apps which use gnome-vfs work for such files?
Comment 6 Stephen Kennedy 2004-07-13 11:37:12 UTC
I haven't tried other apps. If this is indeed a gnome-vfs bug (and there are
plenty of zip related ones) then perhaps gedit can warn or disable the buggy parts?
Comment 7 Paolo Maggi 2004-07-13 12:00:36 UTC
Before closing it, I'd like to be sure about the state of concatenated methods
in gnome-vfs
As I said, I'm sure they worked when I wrote the code.

Writing compressed files is another kind of problem.
Comment 8 Paolo Borelli 2006-12-29 14:56:16 UTC
If someones feels inclned I guess it would also be possible to write a compressed-document-loader/saver variant instead of using gnome-vfs for zipped files...
Comment 9 Paolo Borelli 2006-12-29 14:56:32 UTC
*** Bug 389718 has been marked as a duplicate of this bug. ***
Comment 10 Benoît Dejean 2006-12-29 15:41:34 UTC
What's wrong with fixing gnome-vfs ?
Comment 11 Paolo Borelli 2006-12-29 15:53:20 UTC
nothing, but given that:
 - it hasn't happened in 10 years
 - gvfs is being written to replace gnome-vfs
 - I will not personally spend time on this

I will not hold my breath waiting for it to happen :)
Comment 12 Stephen Kennedy 2009-04-26 10:48:55 UTC
Still doesn't work with 2.26.1 which is using gio.
Comment 13 Martin Mai 2010-05-09 09:46:07 UTC
Still the same with 2.30.2
Comment 14 Ignacio Casal Quinteiro (nacho) 2010-08-29 11:41:10 UTC
This will work for gedit 3