chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1298001
)
enable localization for common *ctl commands
author
Dave Reisner
<dreisner@archlinux.org>
Mon, 12 Nov 2012 19:16:07 +0000
(14:16 -0500)
committer
Dave Reisner
<dreisner@archlinux.org>
Mon, 12 Nov 2012 19:16:07 +0000
(14:16 -0500)
src/hostname/hostnamectl.c
patch
|
blob
|
history
src/journal/coredumpctl.c
patch
|
blob
|
history
src/journal/journalctl.c
patch
|
blob
|
history
src/locale/localectl.c
patch
|
blob
|
history
src/login/loginctl.c
patch
|
blob
|
history
src/systemctl/systemctl.c
patch
|
blob
|
history
src/timedate/timedatectl.c
patch
|
blob
|
history
diff --git
a/src/hostname/hostnamectl.c
b/src/hostname/hostnamectl.c
index e7b2b49f29cd8a4b7cf9a7e2891e932e2f1efef1..b7ae5ccc6c2877bc58ceb1dd2ed0ff33cb3b81ee 100644
(file)
--- a/
src/hostname/hostnamectl.c
+++ b/
src/hostname/hostnamectl.c
@@
-23,6
+23,7
@@
#include <stdbool.h>
#include <unistd.h>
#include <getopt.h>
#include <stdbool.h>
#include <unistd.h>
#include <getopt.h>
+#include <locale.h>
#include <string.h>
#include <sys/timex.h>
#include <sys/utsname.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);
dbus_error_init(&error);
+ setlocale(LC_ALL, "");
log_parse_environment();
log_open();
log_parse_environment();
log_open();
diff --git
a/src/journal/coredumpctl.c
b/src/journal/coredumpctl.c
index bdea8ed057828a74dcd6cfae0c6e76d58679c2ae..4adc9236f1fd3428d6f98ea3725a21e927a8f84f 100644
(file)
--- 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/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <locale.h>
#include <stdio.h>
#include <string.h>
#include <getopt.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;
Iterator it;
int r = 0;
+ setlocale(LC_ALL, "");
log_parse_environment();
log_open();
log_parse_environment();
log_open();
diff --git
a/src/journal/journalctl.c
b/src/journal/journalctl.c
index d1407abd9eb677af3c2c9ad1a30fc1a487307a2d..cccd8a7692af2748e158c1541f3e7c4c864af56a 100644
(file)
--- 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/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <locale.h>
#include <fcntl.h>
#include <errno.h>
#include <stddef.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;
bool previous_boot_id_valid = false;
unsigned n_shown = 0;
+ setlocale(LC_ALL, "");
log_parse_environment();
log_open();
log_parse_environment();
log_open();
diff --git
a/src/locale/localectl.c
b/src/locale/localectl.c
index 7d3ac0ad2fe52dd437b518d367ef1a0375b56a93..fa73bcaac6b0871bee16a2edd3d9d09f970a371f 100644
(file)
--- 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/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <locale.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
@@
-740,6
+741,7
@@
int main(int argc, char *argv[]) {
dbus_error_init(&error);
dbus_error_init(&error);
+ setlocale(LC_ALL, "");
log_parse_environment();
log_open();
log_parse_environment();
log_open();
diff --git
a/src/login/loginctl.c
b/src/login/loginctl.c
index 24941fef34c0945b4ef1e777ee5435286ff9bcdd..146986b46ee1993aa472cd370317567e288cd6b2 100644
(file)
--- a/
src/login/loginctl.c
+++ b/
src/login/loginctl.c
@@
-25,6
+25,7
@@
#include <string.h>
#include <getopt.h>
#include <pwd.h>
#include <string.h>
#include <getopt.h>
#include <pwd.h>
+#include <locale.h>
#include "log.h"
#include "util.h"
#include "log.h"
#include "util.h"
@@
-1568,6
+1569,7
@@
int main(int argc, char*argv[]) {
dbus_error_init(&error);
dbus_error_init(&error);
+ setlocale(LC_ALL, "");
log_parse_environment();
log_open();
log_parse_environment();
log_open();
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index a85a6baf76708a738cd32ad96e4c24d548922215..b82c79435d29acf9cd2f8c5ac937c5de73ffe01f 100644
(file)
--- 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 <sys/reboot.h>
#include <stdio.h>
#include <getopt.h>
+#include <locale.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
@@
-5240,6
+5241,7
@@
int main(int argc, char*argv[]) {
dbus_error_init(&error);
dbus_error_init(&error);
+ setlocale(LC_ALL, "");
log_parse_environment();
log_open();
log_parse_environment();
log_open();
diff --git
a/src/timedate/timedatectl.c
b/src/timedate/timedatectl.c
index 06b98b1061e2896b903a5f4cda1928c7fc4e50f4..caa5bc7dfbb696f943e567af21f9978c696f5304 100644
(file)
--- a/
src/timedate/timedatectl.c
+++ b/
src/timedate/timedatectl.c
@@
-23,6
+23,7
@@
#include <stdbool.h>
#include <unistd.h>
#include <getopt.h>
#include <stdbool.h>
#include <unistd.h>
#include <getopt.h>
+#include <locale.h>
#include <string.h>
#include <sys/timex.h>
#include <string.h>
#include <sys/timex.h>
@@
-677,6
+678,7
@@
int main(int argc, char *argv[]) {
dbus_error_init(&error);
dbus_error_init(&error);
+ setlocale(LC_ALL, "");
log_parse_environment();
log_open();
log_parse_environment();
log_open();