Package: bash
Version: 3.1dfsg-8
Severity: normal

$ locale
LANG=en_US.UTF-8
LC_CTYPE=fi_FI.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

and

$ echo $PS1
${debian_chroot:+($debian_chroot)}\[\033[01;[EMAIL 
PROTECTED]:\[\033[01;34m\]\w\[\033[00m\]\$

(taken from /etc/skel/.bashrc line 34)

we get this:

[EMAIL PROTECTED]:~$ echo -n whatever
[EMAIL PROTECTED]:~$ c0rn:~$ 

instead of the expected

[EMAIL PROTECTED]:~$ echo -n whatever
[EMAIL PROTECTED]:~$

If either locale is set to some non-utf8 or color codes are removed from 
prompt, then it works.

So either bash has a bug or the distributed skeleton .bashrc has a bug.

Leo Moisio

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (650, 'stable'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)

Versions of packages bash depends on:
ii  base-files                  4            Debian base system miscellaneous f
ii  debianutils                 2.17         Miscellaneous utilities specific t
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libncurses5                 5.5-5        Shared libraries for terminal hand

bash 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