[PATCH 1/3] irqtop,lsirq: set up locale path, so messages get actually translated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Benno Schulenberg <bensberg@xxxxxxxxxx>
---
 sys-utils/irqtop.c | 3 +++
 sys-utils/lsirq.c  | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/sys-utils/irqtop.c b/sys-utils/irqtop.c
index 6d001cb10..99f2f6041 100644
--- a/sys-utils/irqtop.c
+++ b/sys-utils/irqtop.c
@@ -456,6 +456,9 @@ int main(int argc, char **argv)
 	};
 
 	setlocale(LC_ALL, "");
+	bindtextdomain(PACKAGE, LOCALEDIR);
+	textdomain(PACKAGE);
+	close_stdout_atexit();
 
 	parse_args(&ctl, &out, argc, argv);
 
diff --git a/sys-utils/lsirq.c b/sys-utils/lsirq.c
index fa2dcaaf3..0b3e4c241 100644
--- a/sys-utils/lsirq.c
+++ b/sys-utils/lsirq.c
@@ -109,6 +109,9 @@ int main(int argc, char **argv)
 	char *input_file = NULL;
 
 	setlocale(LC_ALL, "");
+	bindtextdomain(PACKAGE, LOCALEDIR);
+	textdomain(PACKAGE);
+	close_stdout_atexit();
 
 	while ((c = getopt_long(argc, argv, "i:no:s:t:C:ShJPV", longopts, NULL)) != -1) {
 		err_exclusive_options(c, longopts, excl, excl_st);
-- 
2.48.1





[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux