mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
enable localization for common *ctl commands
This commit is contained in:
parent
1298001ec5
commit
a9cdc94f7f
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user