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.

