]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
partx: switch on localization
authorBenno Schulenberg <bensberg@justemail.net>
Sat, 30 Jul 2011 13:35:16 +0000 (15:35 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Aug 2011 12:13:39 +0000 (14:13 +0200)
Reported-by: Petr Písař <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
partx/partx.c

index a42c1894f8b4ba95897ed4317954c4bb88bfea12..b2a72ede3bb97968a648b5baaeadcca1fc2a5ec2 100644 (file)
@@ -640,6 +640,10 @@ int main(int argc, char **argv)
                { NULL, 0, NULL, 0 }
        };
 
+       setlocale(LC_ALL, "");
+       bindtextdomain(PACKAGE, LOCALEDIR);
+       textdomain(PACKAGE);
+
        while ((c = getopt_long(argc, argv,
                                "abdglrsvn:t:o:Ph", long_opts, NULL)) != -1) {