[systemd-commits] src/hostname src/journal src/locale src/login src/systemctl src/timedate

Dave Reisner dreisner at kemper.freedesktop.org
Mon Nov 12 11:18:57 PST 2012


 src/hostname/hostnamectl.c |    2 ++
 src/journal/coredumpctl.c  |    2 ++
 src/journal/journalctl.c   |    2 ++
 src/locale/localectl.c     |    2 ++
 src/login/loginctl.c       |    2 ++
 src/systemctl/systemctl.c  |    2 ++
 src/timedate/timedatectl.c |    2 ++
 7 files changed, 14 insertions(+)

New commits:
commit a9cdc94f7ff40f22a3cf9472f612a80730a1b010
Author: Dave Reisner <dreisner at archlinux.org>
Date:   Mon Nov 12 14:16:07 2012 -0500

    enable localization for common *ctl commands

diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c
index e7b2b49..b7ae5cc 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();
 
diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c
index bdea8ed..4adc923 100644
--- a/src/journal/coredumpctl.c
+++ b/src/journal/coredumpctl.c
@@ -19,6 +19,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include <locale.h>
 #include <stdio.h>
 #include <string.h>
 #include <getopt.h>
@@ -514,6 +515,7 @@ int main(int argc, char *argv[]) {
         Iterator it;
         int r = 0;
 
+        setlocale(LC_ALL, "");
         log_parse_environment();
         log_open();
 
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index d1407ab..cccd8a7 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -19,6 +19,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include <locale.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <stddef.h>
@@ -820,6 +821,7 @@ int main(int argc, char *argv[]) {
         bool previous_boot_id_valid = false;
         unsigned n_shown = 0;
 
+        setlocale(LC_ALL, "");
         log_parse_environment();
         log_open();
 
diff --git a/src/locale/localectl.c b/src/locale/localectl.c
index 7d3ac0a..fa73bca 100644
--- a/src/locale/localectl.c
+++ b/src/locale/localectl.c
@@ -19,6 +19,7 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
+#include <locale.h>
 #include <stdlib.h>
 #include <stdbool.h>
 #include <unistd.h>
@@ -740,6 +741,7 @@ int main(int argc, char *argv[]) {
 
         dbus_error_init(&error);
 
+        setlocale(LC_ALL, "");
         log_parse_environment();
         log_open();
 
diff --git a/src/login/loginctl.c b/src/login/loginctl.c
index 24941fe..146986b 100644
--- a/src/login/loginctl.c
+++ b/src/login/loginctl.c
@@ -25,6 +25,7 @@
 #include <string.h>
 #include <getopt.h>
 #include <pwd.h>
+#include <locale.h>
 
 #include "log.h"
 #include "util.h"
@@ -1568,6 +1569,7 @@ int main(int argc, char*argv[]) {
 
         dbus_error_init(&error);
 
+        setlocale(LC_ALL, "");
         log_parse_environment();
         log_open();
 
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index a85a6ba..b82c794 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();
 
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c
index 06b98b1..caa5bc7 100644
--- a/src/timedate/timedatectl.c
+++ b/src/timedate/timedatectl.c
@@ -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();
 



More information about the systemd-commits mailing list