dosfslabel improperly handles localized input

Bug #437897 reported by Marc D.
10
This bug affects 2 people
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
NonfreeKernelModules: wl
Package: dosfstools 3.0.3-1
ProcVersionSignature: Ubuntu 2.6.31-10.35-generic
SourcePackage: dosfstools
Uname: Linux 2.6.31-10-generic i686

Revision history for this message
Marc D. (koshy) wrote :
Revision history for this message
Marc D. (koshy) wrote :

The problem still exists in
Version: 3.0.12-1ubuntu1 (precise)

Revision history for this message
Marc D. (koshy) wrote :

The problem still exists in
Version: 4.1-1 (bionic)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dosfstools (Ubuntu):
status: New → Confirmed
Revision history for this message
Pali (pali) wrote :

Issue is now fixed in dosfstools 4.2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.