summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-12 14:16:07 -0500
committerDave Reisner <dreisner@archlinux.org>2012-11-12 14:16:07 -0500
commita9cdc94f7ff40f22a3cf9472f612a80730a1b010 (patch)
treee41785d3ffdf9f99305ba4748b733dfd083a5582 /src/journal
parent1298001ec5e320f9f9b6a9b925c8939b2579396d (diff)
enable localization for common *ctl commands
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/coredumpctl.c2
-rw-r--r--src/journal/journalctl.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c
index bdea8ed057..4adc9236f1 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 d1407abd9e..cccd8a7692 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();