Package: file
Version: 4.15-2
Severity: normal

the result of detection might be dependent of the encoding!

plain text perl is recognised as perl,
when utf-8 is recognised as c++ ISO-8859!

The sequence  ef bb bf indicates utf-8 text file.
We could assume The text file begins at offset 3.

[EMAIL PROTECTED]:~/$ file java{V2.pl,.pl}
javaV2.pl: ISO-8859 C++ program text
java.pl:   perl script text executable
[EMAIL PROTECTED]:~/$ od -c -t x1 java.pl | head -n 2
0000000   #   !   /   u   s   r   /   b   i   n   /   p   e   r   l
        23 21 2f 75 73 72 2f 62 69 6e 2f 70 65 72 6c 20
[EMAIL PROTECTED]:~/$ od -c -t x1 javaV2.pl | head -n 2
0000000   ï   »   ¿   #   !   /   u   s   r   /   b   i   n   /   p   e
        ef bb bf 23 21 2f 75 73 72 2f 62 69 6e 2f 70 65



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages file depends on:
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an
ii  libmagic1                     4.15-2     File type determination library us
ii  zlib1g                        1:1.2.3-8  compression library - runtime

file recommends no packages.

-- no debconf information

Reply via email to