chiark / gitweb /
enable localization for common *ctl commands
[elogind.git] / src / timedate / timedatectl.c
index 06b98b1061e2896b903a5f4cda1928c7fc4e50f4..caa5bc7dfbb696f943e567af21f9978c696f5304 100644 (file)
@@ -23,6 +23,7 @@
 #include <stdbool.h>
 #include <unistd.h>
 #include <getopt.h>
+#include <locale.h>
 #include <string.h>
 #include <sys/timex.h>
 
@@ -677,6 +678,7 @@ int main(int argc, char *argv[]) {
 
         dbus_error_init(&error);
 
+        setlocale(LC_ALL, "");
         log_parse_environment();
         log_open();