Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 74211

Summary: redhat-logviewer doesn't work
Product: [Retired] Red Hat Public Beta Reporter: Stiphane Lozada <stlz>
Component: redhat-logviewerAssignee: Tammy Fox <tammy.c.fox>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: null   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-09-18 01:40:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stiphane Lozada 2002-09-17 21:54:35 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020809

Description of problem:
I tried to start System Logs from Gnome menu without success. Then I tried to
launch directly the binary /usr/bin/redhat-logviewer and I understood something
might be wrong, see below in additional info what I got on the terminal.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.try to start /usr/bin/redhat-logviewer
2.
3.
	

Additional info:

Traceback (most recent call last):
  File "/usr/share/redhat-logviewer/redhat-logviewer.py", line 30, in ?
    import LogViewerGui
  File "/usr/share/redhat-logviewer/LogViewerGui.py", line 123, in ?
    sysClass = LogFileClass.LogFileClass("SYSLOG")
  File "/usr/share/redhat-logviewer/LogFileClass.py", line 69, in __init__
    self.read_log(self.prefName)
  File "/usr/share/redhat-logviewer/LogFileClass.py", line 119, in read_log
    self.buffer.insert_into_buffer_at_offset(iter, line)
  File "/usr/share/redhat-logviewer/LogBuffer.py", line 57, in
insert_into_buffer_at_offset
    self.insert(iter, unicode(new_line,'utf-8'), -1)
UnicodeError: UTF-8 decoding error: unexpected code byte

Comment 1 Miloslav Trmac 2002-09-18 01:40:10 UTC
The same for me. One possible reason are the timestamps in log messages. They
are for some reason localized and get munged along the way, at least for
LANG=cs_CZ.utf8.

Comment 2 Tammy Fox 2002-09-18 21:05:35 UTC
This is fixed in the latest rawhide version. 

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