0cb0b9
From 1f1382ab8672b9bb679ecc7e79583fd826908f6f Mon Sep 17 00:00:00 2001
0cb0b9
From: "Brian C. Lane" <bcl@redhat.com>
0cb0b9
Date: Mon, 1 May 2017 17:04:11 -0700
0cb0b9
Subject: [PATCH 69/75] Fix crash when localized
0cb0b9
0cb0b9
The _() macro is only for translating string literals.  It was
0cb0b9
incorrectly applied to a runtime string representing the name
0cb0b9
of a partition and this sometimes caused a gettext crash.
0cb0b9
---
0cb0b9
 parted/parted.c | 2 +-
0cb0b9
 1 file changed, 1 insertion(+), 1 deletion(-)
0cb0b9
0cb0b9
diff --git a/parted/parted.c b/parted/parted.c
0cb0b9
index bd848c3..f767bec 100644
0cb0b9
--- a/parted/parted.c
0cb0b9
+++ b/parted/parted.c
0cb0b9
@@ -1276,7 +1276,7 @@ do_print (PedDevice** dev, PedDisk** diskp)
0cb0b9
                         putchar (':');
0cb0b9
 
0cb0b9
                     if (has_name)
0cb0b9
-                        printf ("%s:", _(ped_partition_get_name (part)));
0cb0b9
+                        printf ("%s:", ped_partition_get_name (part));
0cb0b9
                     else
0cb0b9
                         putchar (':');
0cb0b9
 
0cb0b9
-- 
0cb0b9
2.9.3
0cb0b9