dosfslabel improperly handles localized input
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dosfstools (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dosfstools
dosfslabel improperly handles localized input. In a UTF-8 locale, the following command fails with an improper error message:
kosh@galileo:~$ dosfslabel /dev/sdc1 äääääääää
dosfslabel: labels can be no longer than 11 characters
I entered only nine characters, so the error message is misleading. Obviously, dosfslabel just uses the 18 octets of the UTF-8 representation of äääääääää, which is incorrect in most cases (when a non 8bit locale is being used).
Please fix this on a layer of your choice.
ProblemType: Bug
Architecture: i386
Date: Mon Sep 28 02:33:48 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: dosfstools 3.0.3-1
ProcVersionSign
SourcePackage: dosfstools
Uname: Linux 2.6.31-10-generic i686
The problem still exists in
Version: 3.0.12-1ubuntu1 (precise)