Package: mc
Version: 1:4.6.1-6
Severity: important

This bug regards the 48_utf8-slang2.patch patch.

I configure the "User defined" "Listing mode" as
follows:
half type name | size:4 | mode:3 | ownder:4

For example, fe->st.st_mode can contain 40755
value in octal. When parsed with string_file_perm_octal (screen.c:351)
in format_file (screen.c:530), the resulting string (txt variable)
contains "0040755". The string is converted to wide char and
printed out at line 661 in screen.c. The resulted output is "004"
and should be "755".

If I specify only "mode" (without ":3") in format string the
resulting output is "004075" and should be "040755".

I suppose there is something mixed up in the logic for UTF-8 
code.

Thanks.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20.2-keo
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages mc depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libglib2.0-0                2.12.6-2     The GLib library of C routines
ii  libgpmg1                    1.19.6-25    General Purpose Mouse - shared lib
ii  libslang2                   2.0.6-4      The S-Lang programming library - r

mc recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to