summaryrefslogtreecommitdiffstats
path: root/games/random/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/random/random.c')
-rw-r--r--games/random/random.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/games/random/random.c b/games/random/random.c
index 62c83ba..b7b732a 100644
--- a/games/random/random.c
+++ b/games/random/random.c
@@ -54,6 +54,7 @@ __FBSDID("$FreeBSD$");
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
+#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -84,6 +85,9 @@ main(int argc, char *argv[])
random_type = RANDOM_TYPE_UNSET;
random_exit = randomize_lines = random_type = unbuffer_output = 0;
unique_output = 1;
+
+ (void)setlocale(LC_CTYPE, "");
+
while ((ch = getopt(argc, argv, "ef:hlruUw")) != -1)
switch (ch) {
case 'e':
OpenPOWER on IntegriCloud