about summary refs log tree commit diff
path: root/localedata/show-ucs-data.c
diff options
context:
space:
mode:
Diffstat (limited to 'localedata/show-ucs-data.c')
-rw-r--r--localedata/show-ucs-data.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/localedata/show-ucs-data.c b/localedata/show-ucs-data.c
index 9992ece427..85d2659741 100644
--- a/localedata/show-ucs-data.c
+++ b/localedata/show-ucs-data.c
@@ -10,6 +10,13 @@ main (int argc, char *argv[])
   char *line = NULL;
   size_t len = 0;
 
+  if (argc == 1)
+    {
+      static char *new_argv[] = { NULL, (char *) "/dev/stdin", NULL };
+      argv = new_argv;
+      argc = 2;
+    }
+
   for (n = 1; n < argc; ++n)
     {
       FILE *fp = fopen (argv[n], "r");