Traceback (most recent call last): File "/usr/bin/elogv", line 493, in <module> curses.wrapper(ElogViewer) File "/usr/lib/python2.5/curses/wrapper.py", line 44, in wrapper return func(stdscr, *args, **kwds) File "/usr/bin/elogv", line 150, in __init__ self.show_log() File "/usr/bin/elogv", line 399, in show_log self.log_win.addstr(x[:self.width-2],curses.color_pair(normal)) _curses.error: addstr() returned ERR This is because addstr() returns ERR when it reaches end of a window. See similar issue: http://ubuntuforums.org/showthread.php?t=457689 Solution given in mentioned thread also works here Reproducible: Always Steps to Reproduce: 1. Place file x11-base:xorg-server-1.4.0.90-r3:20080320-074507.log (attached below) in /var/log/portage/elog. 2. Set terminal size to 110x23. 3. Run elogv and view log with spacebar. Elogv crashes.
Created attachment 146661 [details] x11-base:xorg-server-1.4.0.90-r3:20080320-074507.log
Created attachment 146662 [details, diff] proposed patch
As always, thanks a lot for your support. Adding Luca to get him informed.
(In reply to comment #3) > As always, thanks a lot for your support. Adding Luca to get him informed. > Thanks again Michal for your work. ;) I've just released 0.6.4 including this fix.
(In reply to comment #4) > (In reply to comment #3) > > As always, thanks a lot for your support. Adding Luca to get him informed. > > > Thanks again Michal for your work. ;) I've just released 0.6.4 including this > fix. Bumped in Portage. Another idea I have is localisation of the tool...I can provide Spanish and German translation, Luca Italian and Michal Polish for sure. Is this doable in a simple way with elogv? I think nls is there for Python, too.
(In reply to comment #5) > Bumped in Portage. Another idea I have is localisation of the tool...I can > provide Spanish and German translation, Luca Italian and Michal Polish for > sure. Is this doable in a simple way with elogv? I think nls is there for > Python, too. > Yeah, python has good integration with gettext, I think I can do it. I'll soon file a bug report with a patch and Polish translation.