]> err.no Git - util-linux/commitdiff
sfdisk: dump has to be $LANG insensitive
authorKarel Zak <kzak@redhat.com>
Fri, 11 Sep 2009 12:00:50 +0000 (14:00 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 11 Sep 2009 12:00:50 +0000 (14:00 +0200)
This stupid bug has been introduced by:

commit add5133f4ad5136aac3ce7627e615d14893d0aeb
Author: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Date:   Fri Oct 3 08:52:35 2008 +0200
fdisk: several strings without gettext calls

... so it shows that we need to improve our review process... :-(

Address-Red-Hat-Bug: #522718
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/sfdisk.c

index 8fae5bb548e037e7bdfc19220631aee2e47c5b84..427cb408e96da3bb89f0258e5f415700031e4415 100644 (file)
@@ -930,8 +930,8 @@ get_disksize(int format) {
 static void
 out_partition_header(char *dev, int format, struct geometry G) {
     if (dump) {
-       printf(_("# partition table of %s\n"), dev);
-       printf(_("unit: sectors\n\n"));
+       printf("# partition table of %s\n", dev);
+       printf("unit: sectors\n\n");
        return;
     }
 
@@ -1059,12 +1059,12 @@ out_partition(char *dev, int format, struct part_desc *p,
     size = p->size;
 
     if (dump) {
-       printf(_(" start=%9lu"), start);
-       printf(_(", size=%9lu"), size);
+       printf(" start=%9lu", start);
+       printf(", size=%9lu", size);
        if (p->ptype == DOS_TYPE) {
            printf(", Id=%2x", p->p.sys_type);
            if (p->p.bootable == 0x80)
-               printf(_(", bootable"));
+               printf(", bootable");
        }
        printf("\n");
        return;