diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-11-12 14:16:07 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-11-12 14:16:07 -0500 |
commit | a9cdc94f7ff40f22a3cf9472f612a80730a1b010 (patch) | |
tree | e41785d3ffdf9f99305ba4748b733dfd083a5582 /src/hostname | |
parent | 1298001ec5e320f9f9b6a9b925c8939b2579396d (diff) |
enable localization for common *ctl commands
Diffstat (limited to 'src/hostname')
-rw-r--r-- | src/hostname/hostnamectl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c index e7b2b49f29..b7ae5ccc6c 100644 --- a/src/hostname/hostnamectl.c +++ b/src/hostname/hostnamectl.c @@ -23,6 +23,7 @@ #include <stdbool.h> #include <unistd.h> #include <getopt.h> +#include <locale.h> #include <string.h> #include <sys/timex.h> #include <sys/utsname.h> @@ -507,6 +508,7 @@ int main(int argc, char *argv[]) { dbus_error_init(&error); + setlocale(LC_ALL, ""); log_parse_environment(); log_open(); |