$ locale LANG=sv_SE.UTF-8 LC_CTYPE="sv_SE.UTF-8" LC_NUMERIC="sv_SE.UTF-8" LC_TIME="sv_SE.UTF-8" LC_COLLATE="sv_SE.UTF-8" LC_MONETARY="sv_SE.UTF-8" LC_MESSAGES="sv_SE.UTF-8" LC_PAPER="sv_SE.UTF-8" LC_NAME="sv_SE.UTF-8" LC_ADDRESS="sv_SE.UTF-8" LC_TELEPHONE="sv_SE.UTF-8" LC_MEASUREMENT="sv_SE.UTF-8" LC_IDENTIFICATION="sv_SE.UTF-8" LC_ALL= # badblocks -swv /dev/sde Letar efter dåliga block i läs-skriv-läge Från block 0 till 117246527 Testar med möns 0.39% klar, 0:10 har gåtttttttttttt The output should be: Testar med mönster Oxaa: 0.39% klar, 0:10 har gått Each time that the percent counter is updated it jumps one char to the left until it reaches the leftmost border. LC_ALL="sv_SE" and it behaves correctly. Change "gått" in the sv.po to something without 'å' and the output will be shown correctly in UTF8. So it seems like something in badblocks is broken for unicode.
Created attachment 240993 [details] Proposed Fix This following patch should fix things. Could you please confirm? Thanks!!
(In reply to comment #1) > Created an attachment (id=240993) [details] > Proposed Fix > > This following patch should fix things. Could you please confirm? > > Thanks!! > This works fine with sv_SE.UTF-8 here, thanks!
fix is part of upstream 1.41.14 release