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 574537 - Exporting log produces file that cannot be opened by gedit.
Exporting log produces file that cannot be opened by gedit.
Status: RESOLVED FIXED
Product: xchat-gnome
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: xchat-gnome maintainers
xchat-gnome maintainers
Depends on:
Blocks: 602311
 
 
Reported: 2009-03-08 11:22 UTC by Lionel Dricot
Modified: 2009-11-18 19:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
xchat_log (42.35 KB, text/plain)
2009-03-08 11:23 UTC, Lionel Dricot
Details
Xchat log (78.37 KB, text/x-log)
2009-11-18 17:40 UTC, Paul Cutler
Details
Log from #gnome on GIMPNet using Xchat-gnome (36.41 KB, text/x-log)
2009-11-18 18:59 UTC, Paul Cutler
Details

Description Lionel Dricot 2009-03-08 11:22:02 UTC
It seems that log produced by xchat-gnome are not valid files. They can be opened by less or Abiword but not gedit.

The bug in gedit :
http://bugzilla.gnome.org/show_bug.cgi?id=574535
Comment 1 Lionel Dricot 2009-03-08 11:23:11 UTC
Created attachment 130272 [details]
xchat_log

try to open that log with gedit
Comment 2 Christian Persch 2009-03-08 12:58:14 UTC
It's valid UTF-8 at least. I can repro the problem; gedit seems to mistake it for chinese text, and if run with gedit --encoding=utf-8 it doesn't want to open it. Gedit bug?
Comment 3 Lionel Dricot 2009-03-08 17:51:59 UTC
Jesse said that the file was not valid (see the linked bug).

Honnestly, I don't know that's why I reported it for both.
Comment 4 Paul Cutler 2009-07-27 14:39:52 UTC
I can repro this and confirm this bug.  Gedit and Geany both won't display the file correctly, where Abiword will.
Comment 5 Ritesh Khadgaray ( irc:ritz) 2009-07-28 05:00:16 UTC
I am not able to reproduce this with latest release of xchat-gnome. What is the language setting being used ?
Comment 6 Paul Cutler 2009-07-28 13:28:57 UTC
I am using US English (en_us)
Comment 7 Ritesh Khadgaray ( irc:ritz) 2009-11-18 15:45:00 UTC
hi, How does one reproduce this issue ?
Comment 8 Paul Cutler 2009-11-18 17:40:04 UTC
To reproduce:

I save a log from Discussion -> Save Transcript, and save the file.

I then double click to open with Gedit and get:

gedit has not been able to detect the character coding.
Please check that you are not trying to open a binary file.
Select a character coding from the menu and try again.

Character coding:  Current Locale (UTF-8) 

with an option to change to:

Western (ISO-8859-15)

Which also doesn't work.

I will attach a log of the #docs channel on GIMPNet which I just saved.

Only Abiword seems to open the log correctly.
Comment 9 Paul Cutler 2009-11-18 17:40:31 UTC
Created attachment 148059 [details]
Xchat log
Comment 10 Paul Cutler 2009-11-18 18:59:21 UTC
Created attachment 148067 [details]
Log from #gnome on GIMPNet using Xchat-gnome

After building Xchat-Gnome from git, Gedit will now open the log files, but displays the text as Chinese or Japanese characters.

Trying to open a log with gedit --encoding=utf-8 \#gnome-2009-11-18-12h55.log does not work and displays the error in Gedit:  Could not open the file /home/pcutler/#docs-2009-11-18-12h51.log using the Unicode (UTF-8) character coding
Comment 11 Ritesh Khadgaray ( irc:ritz) 2009-11-18 19:10:30 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

If you still see this issue, you would need to "scrub" the older log files of "0x00". You can run the below command , courtesy of Stric 


for f in .xchat*/xchatlogs/*; do
  perl -pi -e 's/\0//g' "$f";  
done