summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-01-05 19:55:08 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-01-05 20:02:02 -0800
commit601eceb57cfb87ded594701acc401277c53ff837 (patch)
treefb53ec3ea17a41f24fb1c4bc06e61c25e8a20603 /src/diff.c
parent2c9d956aacdfddbb87334c985cd995d75102f789 (diff)
downloaddiffutils-601eceb57cfb87ded594701acc401277c53ff837.tar.gz
diff: fix cmp, diff3, sdiff with stdin closed
* NEWS: Mention this. * src/cmp.c, src/diff3.c, src/sdiff.c: Include stdopen.h. (main): Call stdopen early. * src/cmp.c (main): Simplify now that we need not worry about stdin being closed. * src/diff.c (main): Translate stdopen diagnostic.
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index a5ec7f4..d54782c 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -300,7 +300,7 @@ main (int argc, char **argv)
presume_output_tty = false;
int stdopen_errno = stdopen ();
if (stdopen_errno != 0)
- error (EXIT_TROUBLE, stdopen_errno, "standard file descriptors");
+ error (EXIT_TROUBLE, stdopen_errno, _("standard file descriptors"));
/* Decode the options. */