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

Reply via email to