Package: bash Version: 4.1-3 Severity: normal UTF8 is the standard encoding worldwide nowadays.
Unicode gives two options for starting an UTF8 file: with or without BOM. BOM character in UTF8 is the sequence of three bytes EF BB BF. It is introduced by many text editors. bash only admit script files which do not start by BOM. This limitation make script starting with BOM will not work giving no explanation to the user why bash does not want to handle them. In file shell.c, function open_shell_script contains some checks, one of them ensure that file does not contain any nul byte. This function should also provide some feature, to run just after the UTF8 BOM (a three bytes character) when it is present. If not, it should at least inform the user, when a BOM is present, of what happens. -- System Information: Debian Release: 6.0.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages bash depends on: ii base-files 6.0squeeze5 Debian base system miscellaneous f ii dash 0.5.5.1-7.4 POSIX-compliant shell ii debianutils 3.4 Miscellaneous utilities specific t ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib ii libncurses5 5.7+20100313-5 shared libraries for terminal hand Versions of packages bash recommends: ii bash-completion 1:1.2-3 programmable completion for the ba Versions of packages bash suggests: pn bash-doc <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org