Description of problem: redhat-logviewer crashes on open Version-Release number of selected component (if applicable): Default that ships with RH 8.0. How reproducible: Easy - just try to run the application. Steps to Reproduce: 1. Run redhat-logviewer 2. 3. Actual results: When run from terminal, application crashes with the following information: unable to translate from iso-8859-1 utf-8 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 137, in ? ftpClass = LogFileClass.LogFileClass("FTPLOG") 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 117, in insert_into_buffer_at_offset self.insert(iter, line, -1) TypeError: GtkTextBuffer.insert() argument 2 must be string without null bytes, not str Expected results: I expected to able to view logfiles. Additional info:
What is your $LANG environment variable set to? Can you read the FTP log file with a text editor such as vi or Emacs?
$LANG is en_US.iso885915 I can read the FTP log in vi or gedit.
Tammy, I'm going out of town on business first thing Sunday morning and will be without email all next week. I'll be back in town the evening of March 8. thanks!
Is this system a fresh install of RHL 8.0 or an upgraded system? If it is an upgraded system, please tell me what version was installed and which versions it was upgraded to. AFAIK, none of our final versions set the locale to en_US.iso885915. Have you upgraded it from a beta version? The default US English locale for RHL 8.0 is en_US.UTF-8. I think your log file is encoded in en_US.iso885915, which is why it can not be read properly by redhat-logviewer.
This is an upgrade from RH7.3 - but httpd was downgraded back to Apache 1.3 as there are some issues with php and Apache 2.x. I changed etc/sysconfig/i18n to UTF-8 and logviewer now works - thank you. One more question. Since this /i18n looks exactly like a RH7.3 version I don't know what the SYSFONT and SUSFONTACM variables should be set to. I left iso885915 as a supported locale just in case - can you give me the defaults for the other two variables? thanks again :)
FWIW, upgrades are not supposed to modify /etc/sysconfig/i18n. That is why your values are still from RHL 7.3. On a RHL 8.0 box, the following is in /etc/sysconfig/i18n: LANG="en_US.UTF-8" SUPPORTED="en_US.UTF-8:en_US:en" SYSFONT="latarcyrheb-sun16" I'm closing this as NOTABUG since it wasn't a bug in redhat-logviewer after all.