Bug#617229: lfm: aborts with error UnicodeDecodeError message from ascii codec on start
Am Monday 07 March 2011 schrieb Iñigo Serna: ah, ok, problem found. March is März in German, and that ä is causing the crash. A new folder only has one entry - the parent directory - so crash happened when showing .. date. While I fix the bug you can change your locale to make lfm work by now (or better in shell function): $ LANG=en_GB.UTF-8 $ lfm Thanks, this works, while martin@shambhala:~ LANG=C lfm Traceback (most recent call last): File /usr/bin/lfm, line 27, in module lfm_start(sys.argv) File /usr/share/lfm/lfm/lfm.py, line 924, in lfm_start path = curses.wrapper(main, prefs, paths1, paths2) File /usr/lib/python2.6/curses/wrapper.py, line 43, in wrapper return func(stdscr, *args, **kwds) File /usr/share/lfm/lfm/lfm.py, line 845, in main app.load_paths(paths1, paths2) File /usr/share/lfm/lfm/lfm.py, line 90, in load_paths self.lpane.load_tabs_with_paths(paths1) File /usr/share/lfm/lfm/lfm.py, line 299, in load_tabs_with_paths err = tab.init(utils.decode(path)) File /usr/share/lfm/lfm/lfm.py, line 795, in init err = self.init_dir(path) File /usr/share/lfm/lfm/lfm.py, line 612, in init_dir self.nfiles, self.files = files.get_dir(path, app.prefs.options['show_dotfiles']) File /usr/share/lfm/lfm/files.py, line 252, in get_dir if ask_convert_invalid_encoding_filename(newf): File /usr/share/lfm/lfm/utils.py, line 1001, in ask_convert_invalid_encoding_filename 'In file %s, convert' % filename) File /usr/share/lfm/lfm/messages.py, line 326, in confirm win.addstr(1, 2 , '%s?' % utils.encode(question)) File /usr/share/lfm/lfm/utils.py, line 976, in encode return buf.encode(g_encoding) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 10: ordinal not in range(128) also chokes. Ciao, -- Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7 signature.asc Description: This is a digitally signed message part.
Bug#617229: lfm: aborts with error UnicodeDecodeError message from ascii codec on start
Hi again Martin, On 8 March 2011 10:37, Martin Steigerwald mar...@lichtvoll.de wrote: Am Monday 07 March 2011 schrieb Iñigo Serna: ah, ok, problem found. March is März in German, and that ä is causing the crash. A new folder only has one entry - the parent directory - so crash happened when showing .. date. While I fix the bug you can change your locale to make lfm work by now (or better in shell function): $ LANG=en_GB.UTF-8 $ lfm Thanks, this works, while martin@shambhala:~ LANG=C lfm Traceback (most recent call last): File /usr/bin/lfm, line 27, in module lfm_start(sys.argv) File /usr/share/lfm/lfm/lfm.py, line 924, in lfm_start path = curses.wrapper(main, prefs, paths1, paths2) File /usr/lib/python2.6/curses/wrapper.py, line 43, in wrapper return func(stdscr, *args, **kwds) File /usr/share/lfm/lfm/lfm.py, line 845, in main app.load_paths(paths1, paths2) File /usr/share/lfm/lfm/lfm.py, line 90, in load_paths self.lpane.load_tabs_with_paths(paths1) File /usr/share/lfm/lfm/lfm.py, line 299, in load_tabs_with_paths err = tab.init(utils.decode(path)) File /usr/share/lfm/lfm/lfm.py, line 795, in init err = self.init_dir(path) File /usr/share/lfm/lfm/lfm.py, line 612, in init_dir self.nfiles, self.files = files.get_dir(path, app.prefs.options['show_dotfiles']) File /usr/share/lfm/lfm/files.py, line 252, in get_dir if ask_convert_invalid_encoding_filename(newf): File /usr/share/lfm/lfm/utils.py, line 1001, in ask_convert_invalid_encoding_filename 'In file %s, convert' % filename) File /usr/share/lfm/lfm/messages.py, line 326, in confirm win.addstr(1, 2 , '%s?' % utils.encode(question)) File /usr/share/lfm/lfm/utils.py, line 976, in encode return buf.encode(g_encoding) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 10: ordinal not in range(128) also chokes. What I see from the report is that lfm tried to convert the encoding of one of the files for proper visualization. Looks like the crash happens when enconding of terminal is different than the encoding of file system. Which encondig for terminal and file system are you using? Coud you send me the output of ls -la in that directory please? so I could see the problematic file names. Even can you make and send me a tar-file with some of those problematic files? thus i could check myself the used filename enconding. Thanks, Iñigo Serna -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#617229: lfm: aborts with error UnicodeDecodeError message from ascii codec on start
Package: lfm Version: 2.2-1 Severity: normal Just wanted to have a look at this package: martin@shambhala:~#16 lfm Config file does not exist, we'll use default values Traceback (most recent call last): File /usr/bin/lfm, line 27, in module lfm_start(sys.argv) File /usr/share/lfm/lfm/lfm.py, line 924, in lfm_start path = curses.wrapper(main, prefs, paths1, paths2) File /usr/lib/python2.6/curses/wrapper.py, line 43, in wrapper return func(stdscr, *args, **kwds) File /usr/share/lfm/lfm/lfm.py, line 848, in main ret = app.run() File /usr/share/lfm/lfm/lfm.py, line 197, in run self.display() File /usr/share/lfm/lfm/lfm.py, line 153, in display self.lpane.display() File /usr/share/lfm/lfm/lfm.py, line 358, in display self.display_files() File /usr/share/lfm/lfm/lfm.py, line 465, in display_files buf = tab.get_fileinfo_str_short(res, w, self.pos_col1) File /usr/share/lfm/lfm/lfm.py, line 753, in get_fileinfo_str_short buf = '%(type_chr)c%(fname)s %(size)7s %(mtime2)12s' % res UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128) (Usually I just purge something I wanted to have a look at, when it doesn't start, but I think its fair enough to at least report a bug about it.) -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (450, 'testing'), (400, 'unstable'), (110, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.38-rc7-tp42-snapshot-p1+2-00163-gfb62c00-dirty (PREEMPT) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lfm depends on: ii python 2.6.6-3+squeeze5 interactive high-level object-orie ii python-support 1.0.11 automated rebuilding support for P lfm recommends no packages. lfm suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#617229: lfm: aborts with error UnicodeDecodeError message from ascii codec on start
Thanks Martin for your interest in lfm and for the bug report. Could you check some things, please? - do you have any file not encoded in UTF-8 in the directory from you have started lfm? - is there any filename in Chinese, Japonese or any other language in which a character could get 2 cells? Thanks, Iñigo Serna On 7 March 2011 11:50, Martin Steigerwald mar...@lichtvoll.de wrote: Package: lfm Version: 2.2-1 Severity: normal Just wanted to have a look at this package: martin@shambhala:~#16 lfm Config file does not exist, we'll use default values Traceback (most recent call last): File /usr/bin/lfm, line 27, in module lfm_start(sys.argv) File /usr/share/lfm/lfm/lfm.py, line 924, in lfm_start path = curses.wrapper(main, prefs, paths1, paths2) File /usr/lib/python2.6/curses/wrapper.py, line 43, in wrapper return func(stdscr, *args, **kwds) File /usr/share/lfm/lfm/lfm.py, line 848, in main ret = app.run() File /usr/share/lfm/lfm/lfm.py, line 197, in run self.display() File /usr/share/lfm/lfm/lfm.py, line 153, in display self.lpane.display() File /usr/share/lfm/lfm/lfm.py, line 358, in display self.display_files() File /usr/share/lfm/lfm/lfm.py, line 465, in display_files buf = tab.get_fileinfo_str_short(res, w, self.pos_col1) File /usr/share/lfm/lfm/lfm.py, line 753, in get_fileinfo_str_short buf = '%(type_chr)c%(fname)s %(size)7s %(mtime2)12s' % res UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 4: ordinal not in range(128) (Usually I just purge something I wanted to have a look at, when it doesn't start, but I think its fair enough to at least report a bug about it.) -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (450, 'testing'), (400, 'unstable'), (110, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.38-rc7-tp42-snapshot-p1+2-00163-gfb62c00-dirty (PREEMPT) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages lfm depends on: ii python 2.6.6-3+squeeze5 interactive high-level object-orie ii python-support 1.0.11 automated rebuilding support for P lfm recommends no packages. lfm suggests no packages. -- no debconf information -- Iñigo Serna Katxijasotzaileak -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#617229: lfm: aborts with error UnicodeDecodeError message from ascii codec on start
Am Monday 07 March 2011 schrieb Iñigo Serna: Thanks Martin for your interest in lfm and for the bug report. Could you check some things, please? - do you have any file not encoded in UTF-8 in the directory from you have started lfm? - is there any filename in Chinese, Japonese or any other language in which a character could get 2 cells? It happens also in an empty directory: shambhala:/tmp mkdir lfm-test shambhala:/tmp cd lfm-test shambhala:/tmp/lfm-test lfm zsh: correct 'lfm' to 'lvm' [nyae]? n Traceback (most recent call last): File /usr/bin/lfm, line 27, in module lfm_start(sys.argv) File /usr/share/lfm/lfm/lfm.py, line 924, in lfm_start path = curses.wrapper(main, prefs, paths1, paths2) File /usr/lib/python2.6/curses/wrapper.py, line 43, in wrapper return func(stdscr, *args, **kwds) File /usr/share/lfm/lfm/lfm.py, line 848, in main ret = app.run() File /usr/share/lfm/lfm/lfm.py, line 197, in run self.display() File /usr/share/lfm/lfm/lfm.py, line 153, in display self.lpane.display() File /usr/share/lfm/lfm/lfm.py, line 358, in display self.display_files() File /usr/share/lfm/lfm/lfm.py, line 466, in display_files self.win.addstr(i+2, 1, utils.encode(buf), attr) File /usr/share/lfm/lfm/utils.py, line 976, in encode return buf.encode(g_encoding) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 48: ordinal not in range(128) (Also as ordinary user.) shambhala:/tmp/lfm-test#1 locale LANG=de_DE.UTF-8 LC_CTYPE=de_DE.UTF-8 LC_NUMERIC=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 LC_COLLATE=de_DE.UTF-8 LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=de_DE.UTF-8 LC_PAPER=de_DE.UTF-8 LC_NAME=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8 LC_ALL= shambhala:/tmp/lfm-test Thanks, -- Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7 signature.asc Description: This is a digitally signed message part.
Bug#617229: lfm: aborts with error UnicodeDecodeError message from ascii codec on start
ah, ok, problem found. March is März in German, and that ä is causing the crash. A new folder only has one entry - the parent directory - so crash happened when showing .. date. While I fix the bug you can change your locale to make lfm work by now (or better in shell function): $ LANG=en_GB.UTF-8 $ lfm Thanks again for the feedback and report, Martin Iñigo Serna On 7 March 2011 20:03, Martin Steigerwald mar...@lichtvoll.de wrote: Am Monday 07 March 2011 schrieb Iñigo Serna: Thanks Martin for your interest in lfm and for the bug report. Could you check some things, please? - do you have any file not encoded in UTF-8 in the directory from you have started lfm? - is there any filename in Chinese, Japonese or any other language in which a character could get 2 cells? It happens also in an empty directory: shambhala:/tmp mkdir lfm-test shambhala:/tmp cd lfm-test shambhala:/tmp/lfm-test lfm zsh: correct 'lfm' to 'lvm' [nyae]? n Traceback (most recent call last): File /usr/bin/lfm, line 27, in module lfm_start(sys.argv) File /usr/share/lfm/lfm/lfm.py, line 924, in lfm_start path = curses.wrapper(main, prefs, paths1, paths2) File /usr/lib/python2.6/curses/wrapper.py, line 43, in wrapper return func(stdscr, *args, **kwds) File /usr/share/lfm/lfm/lfm.py, line 848, in main ret = app.run() File /usr/share/lfm/lfm/lfm.py, line 197, in run self.display() File /usr/share/lfm/lfm/lfm.py, line 153, in display self.lpane.display() File /usr/share/lfm/lfm/lfm.py, line 358, in display self.display_files() File /usr/share/lfm/lfm/lfm.py, line 466, in display_files self.win.addstr(i+2, 1, utils.encode(buf), attr) File /usr/share/lfm/lfm/utils.py, line 976, in encode return buf.encode(g_encoding) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 48: ordinal not in range(128) (Also as ordinary user.) shambhala:/tmp/lfm-test#1 locale LANG=de_DE.UTF-8 LC_CTYPE=de_DE.UTF-8 LC_NUMERIC=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 LC_COLLATE=de_DE.UTF-8 LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=de_DE.UTF-8 LC_PAPER=de_DE.UTF-8 LC_NAME=de_DE.UTF-8 LC_ADDRESS=de_DE.UTF-8 LC_TELEPHONE=de_DE.UTF-8 LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=de_DE.UTF-8 LC_ALL= shambhala:/tmp/lfm-test Thanks, -- Martin 'Helios' Steigerwald - http://www.Lichtvoll.de GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7 -- Iñigo Serna Katxijasotzaileak -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org