summaryrefslogtreecommitdiff
path: root/lang/nawk/files/patch-bb
diff options
context:
space:
mode:
Diffstat (limited to 'lang/nawk/files/patch-bb')
-rw-r--r--lang/nawk/files/patch-bb34
1 files changed, 34 insertions, 0 deletions
diff --git a/lang/nawk/files/patch-bb b/lang/nawk/files/patch-bb
new file mode 100644
index 000000000000..1d7ac7a2633a
--- /dev/null
+++ b/lang/nawk/files/patch-bb
@@ -0,0 +1,34 @@
+*** main.c.orig Mon Oct 19 18:49:03 1998
+--- main.c Wed Jan 13 17:51:59 1999
+***************
+*** 27,32 ****
+--- 27,33 ----
+ #define DEBUG
+ #include <stdio.h>
+ #include <ctype.h>
++ #include <locale.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <signal.h>
+***************
+*** 55,61 ****
+ char *fs = NULL, *marg;
+ int temp;
+
+! cmdname = argv[0];
+ if (argc == 1) {
+ fprintf(stderr, "Usage: %s [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]\n", cmdname);
+ exit(1);
+--- 56,67 ----
+ char *fs = NULL, *marg;
+ int temp;
+
+! setlocale(LC_ALL, "");
+!
+! if ((cmdname = strrchr(argv[0], '/')) != NULL)
+! cmdname++;
+! else
+! cmdname = argv[0];
+ if (argc == 1) {
+ fprintf(stderr, "Usage: %s [-f programfile | 'program'] [-Ffieldsep] [-v var=value] [files]\n", cmdname);
+ exit(1);