Package: vim Version: 1:6.4-007+1 Severity: normal Tags: l10n
vim doesn't set the 'fileencoding' variable for compressed files, despite the fact it correctly recognizes the actual file encoding (non-ASCII characters are shown properly).
$ grep encoding .vimrc let &termencoding=system("locale charmap | tr -d '\n'") set encoding=utf-8 set fileencodings=utf-8,iso-8859-2 $ printf '\xd3\xf3ps\n' > foo $ od -t x1 foo 0000000 d3 f3 70 73 0a 0000005 $ vim foo :set fileencoding fileencoding=iso-8859-2 :q $ gzip foo; zcat foo.gz | od -t x1 0000000 d3 f3 70 73 0a 0000005 $ vim foo.gz :set fileencoding fileencoding= :wq $ zcat foo.gz | od -t x1 0000000 c3 93 c3 b3 70 73 0a 0000007 -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (900, 'testing'), (600, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.15 Locale: LANG=C, LC_CTYPE=pl_PL (charmap=ISO-8859-2) Versions of packages vim depends on: ii libc6 2.3.6-3 GNU C Library: Shared libraries an ii libgpmg1 1.19.6-22 General Purpose Mouse - shared lib ii libncurses5 5.5-1 Shared libraries for terminal hand ii vim-common 1:6.4-007+1 Vi IMproved - Common files ii vim-runtime 1:6.4-007+1 Vi IMproved - Runtime files vim recommends no packages. -- no debconf information -- Jakub Wilk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]