Re: Bug#103619: mc: screen corruption when listing files with non-printable chars (ISO 8859-1 mode)


Oskar Liljeblad wrote me this mail:

> When using "ISO 8859-1" display in MC, non-printable characters aren't
> handled correctly. The result is that columns are shifted some
> characters to the right (i.e. screen corruption).
> Ascii 9 (tab) is displayed as is (should be ^I).
> Ascii 10 (tab) is displayed as is (should be ^J).
> Ascii 1-31, 127 are displayed as ^X where X is some character. This
> is correct, but the column is shifted one character to the right.
> Ascii 128-159 are displayed as ~^X, but is shifted two characters to
> the right.
> I used the following to create the files with non-printable characters:
> perl -e 'for(1..255) { open(T,">foo ".chr($_)." bar"); print T "value $_"; close T; }'

Indeed, it is a problem present in 4.5.55. I made a screenshot
available at

Notice, how moving the selection over these files inserts characters
into the command prompt.

GNU Midnight Commander 4.5.55
Edition: text mode
Virtual File System: tarfs, extfs, ftpfs, mcfs, undelfs
With builtin Editor
Using S-Lang library with terminfo database
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
Using locale "C" (from environment variable LC_MESSAGES)

slang 1.4.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]