dropbear doesn't set locales the right way
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dropbear (Debian) |
New
|
Unknown
|
|||
dropbear (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dropbear
When using dropbear 0.50-2 instead of openssh on my Ubuntu hardy server, locales are not properly set on login. In fact they are set to "POSIX". Locales are configured properly (LANG=cs_CZ.UTF-8) and work when accesing the server from console or via openssh.
How to reproduce:
1) Install openssh-server and try out that locales work as expected.
LANG=cs_CZ.UTF-8
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
2) Purge openssh-server, openssh-client and all the residuous libs and install dropbear.
3) When accesing the machine via dropbear, locales are set to "POSIX". LANG is not set.
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
description: | updated |
Changed in dropbear: | |
status: | New → Confirmed |
Changed in dropbear (Debian): | |
status: | Unknown → New |
This bug applies also to Intrepid. A little workaround is to do:
echo "export LANG=\" cs_CZ.UTF- 8\"" > /etc/profile. d/lang. sh
as root. It seems to me that a) dropbear is not working correctly with locales or b) something is wrong with locales and the fault is not on dropbear's side. But a) seems more probable to me.