chiark / gitweb /
enable localization for common *ctl commands
authorDave Reisner <dreisner@archlinux.org>
Mon, 12 Nov 2012 19:16:07 +0000 (14:16 -0500)
committerDave Reisner <dreisner@archlinux.org>
Mon, 12 Nov 2012 19:16:07 +0000 (14:16 -0500)
src/hostname/hostnamectl.c
src/journal/coredumpctl.c
src/journal/journalctl.c
src/locale/localectl.c
src/login/loginctl.c
src/systemctl/systemctl.c
src/timedate/timedatectl.c

index e7b2b49f29cd8a4b7cf9a7e2891e932e2f1efef1..b7ae5ccc6c2877bc58ceb1dd2ed0ff33cb3b81ee 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>
 #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();
 
index bdea8ed057828a74dcd6cfae0c6e76d58679c2ae..4adc9236f1fd3428d6f98ea3725a21e927a8f84f 100644 (file)
@@ -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();
 
index d1407abd9eb677af3c2c9ad1a30fc1a487307a2d..cccd8a7692af2748e158c1541f3e7c4c864af56a 100644 (file)
@@ -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();
 
index 7d3ac0ad2fe52dd437b518d367ef1a0375b56a93..fa73bcaac6b0871bee16a2edd3d9d09f970a371f 100644 (file)
@@ -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();
 
index 24941fef34c0945b4ef1e777ee5435286ff9bcdd..146986b46ee1993aa472cd370317567e288cd6b2 100644 (file)
@@ -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();
 
index a85a6baf76708a738cd32ad96e4c24d548922215..b82c79435d29acf9cd2f8c5ac937c5de73ffe01f 100644 (file)
@@ -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();
 
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();