From 4997b369b97d3ea57fe417aa4c0ea30e24ef3d90 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 14 Apr 2006 17:32:27 +0000 Subject: 1) Fix hang at the end of line buffer (PR 95715) 2) Localize PR: 95715 Submitted by: Li-Lun Wang (slightly edited by me) --- games/random/random.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'games/random/random.c') 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 #include #include +#include #include #include #include @@ -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': -- cgit v1.1