summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-12 14:16:07 -0500
committerDave Reisner <dreisner@archlinux.org>2012-11-12 14:16:07 -0500
commita9cdc94f7ff40f22a3cf9472f612a80730a1b010 (patch)
treee41785d3ffdf9f99305ba4748b733dfd083a5582 /src/systemctl/systemctl.c
parent1298001ec5e320f9f9b6a9b925c8939b2579396d (diff)
enable localization for common *ctl commands
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index a85a6baf76..b82c79435d 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -22,6 +22,7 @@
#include <sys/reboot.h>
#include <stdio.h>
#include <getopt.h>
+#include <locale.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
@@ -5240,6 +5241,7 @@ int main(int argc, char*argv[]) {
dbus_error_init(&error);
+ setlocale(LC_ALL, "");
log_parse_environment();
log_open();