badblocks' output of the pattern is wrong in the German locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
e2fsprogs (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
I am using badblocks to check a hdd that I salvaged from an older machine that I got, I assume the hdd is still good, but I want to make sure and I also want to clear all old data from it.
I am using this command line:
# badblocks -c 4096 -b 4096 -o badblocks.txt -s -v -w /dev/sdb
This is the output I got so far, please notice that the pattern that badblocks is using is not written at the correct location
Nach defekten Blöcken wird gesucht (Lesen+
Von Block 0 bis 122096645
Mit Muster 0x wird getestetaa: erledigt
Lesen und Vergleichen:
Mit Muster 0x wird getestet55: erledigt
Lesen und Vergleichen:
Mit Muster 0x wird getestetff: 15.23% erledigt, 5:16:28 verstrichen. (0/0/0 Fehler)
For example the line:
Mit Muster 0x wird getestetaa: erledigt
should be:
Mit Muster 0xaa wird getestet: erledigt
Or the line
Mit Muster 0x wird getestet55: erledigt
should be:
Mit Muster 0x55 wird getestet: erledigt
Same for the line with shows the current pattern and the progress:
Mit Muster 0x wird getestetff: 15.23% erledigt, 5:16:28 verstrichen. (0/0/0 Fehler)
should be:
Mit Muster 0xff wird getestet: 15.23% erledigt, 5:16:28 verstrichen. (0/0/0 Fehler)
I assume the format string in the German translation for badblocks is a a wrong position in the string (at the end).
This is a x64 ubuntu 15.10 installation.
# lsb_release -d
Description: Ubuntu 15.10
# dpkg -S /sbin/badblocks
e2fsprogs: /sbin/badblocks
# apt-cache showpkg e2fsprogs
Package: e2fsprogs
Versions:
1.42.12-1ubuntu2 (/var/lib/
Description Language:
Description Language: de
Description Language: en
Reverse Depends:
livecd-
uuid-
libuuid1:
libss2:
libcomerr2:
e2fsprogs:
e2fslibs:
ubuntu-
palo,e2fsprogs 1.2
uuid-
livecd-
libuuid1,
libss2,e2fsprogs 1.34-1
libcomerr2,
jasper,e2fsprogs 1.41.11-1
initscripts,
e2fsprogs-
e2fslibs,
cloud-
Dependencies:
1.42.12-1ubuntu2 - e2fslibs (5 1.42.12-1ubuntu2) libblkid1 (2 2.17.2) libc6 (2 2.14) libcomerr2 (2 1.42~WIP-
Provides:
1.42.12-1ubuntu2 - e2fsprogs:i386
Reverse Provides:
e2fsprogs:i386 1.42.12-1ubuntu2
BR
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: e2fsprogs 1.42.12-1ubuntu2
ProcVersionSign
Uname: Linux 4.2.0-19-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
Date: Thu Dec 17 18:41:25 2015
ExecutablePath: /sbin/badblocks
InstallationDate: Installed on 2015-09-01 (107 days ago)
InstallationMedia: Ubuntu-MATE 15.10 "Wily Werewolf" - Alpha amd64 (20150827)
ProcEnviron:
SHELL=/bin/bash
TERM=xterm
PATH=(custom, no user)
LANG=de_DE.UTF-8
LANGUAGE=de_DE
SourcePackage: e2fsprogs
UpgradeStatus: No upgrade log present (probably fresh install)