! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
View content of .gz files instead of asking where to extract
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xarchiver
Component:
general

Comments

Description ciol 2007-07-28 15:31:25 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070719 Iceweasel/2.0.0.5 (Debian-2.0.0.5-2)
Build Identifier: 

Hello, when I open .gz files, xarchiver wants to extract it. Is it possible to view the content of the file instead? (if it's a text file for instance)


Reproducible: Always
Comment 1 Giuseppe Torelli 2007-07-28 18:29:48 CEST
The problem is that bzip doesn't have an option to display the content of the file. How to fix this behaviour?
Comment 2 ciol 2007-07-28 21:16:21 CEST
(In reply to comment #1)
> The problem is that bzip doesn't have an option to display the content of the
> file. How to fix this behaviour?
> 

I don't understand. xarchiver can view the content of a text file in a .tar.gz archive.
How is it different with simple .gz? I'm not the developer but it could be done extracting the file temporarily, or with zcat or gunzip -c.
Why did you say bzip btw, isn't it gzip?

Something unrelated, I tried to view in xarchiver a jpeg file in a rar archive and got:
(xarchiver:9268): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed

I guess it tried to view it as a text file.

Comment 3 Giuseppe Torelli 2007-07-29 08:47:54 CEST
(In reply to comment #2)
> How is it different with simple .gz? I'm not the developer but it could be done
> extracting the file temporarily, or with zcat or gunzip -c.
> Why did you say bzip btw, isn't it gzip?

Yes, this is the best solution. I will implement it as soon as archive navigation I'm currently implementing works perfectly.

> Something unrelated, I tried to view in xarchiver a jpeg file in a rar archive
> and got:
> (xarchiver:9268): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion
> `g_utf8_validate (text, len, NULL)' failed
> 
> I guess it tried to view it as a text file.

Yes. That function works only on text files.

Comment 4 Giuseppe Torelli 2007-09-25 09:36:54 CEST
Fixed in r26108.

Bug #3422

Reported by:
ciol
Reported on: 2007-07-28
Last modified on: 2007-09-25

People

Assignee:
Giuseppe Torelli
CC List:
0 users

Version

Attachments

Additional information