summaryrefslogtreecommitdiffstats
path: root/tools/bison/patches/010-intl-stub-compat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bison/patches/010-intl-stub-compat.patch')
-rw-r--r--tools/bison/patches/010-intl-stub-compat.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/bison/patches/010-intl-stub-compat.patch b/tools/bison/patches/010-intl-stub-compat.patch
index 2cd720b68c..d2dfcadbab 100644
--- a/tools/bison/patches/010-intl-stub-compat.patch
+++ b/tools/bison/patches/010-intl-stub-compat.patch
@@ -1,8 +1,8 @@
--- a/src/main.c
+++ b/src/main.c
-@@ -58,9 +58,9 @@ main (int argc, char *argv[])
+@@ -60,9 +60,9 @@ main (int argc, char *argv[])
{
- program_name = argv[0];
+ set_program_name (argv[0]);
setlocale (LC_ALL, "");
- (void) bindtextdomain (PACKAGE, LOCALEDIR);
- (void) bindtextdomain ("bison-runtime", LOCALEDIR);
@@ -11,5 +11,5 @@
+ bindtextdomain ("bison-runtime", LOCALEDIR);
+ textdomain (PACKAGE);
- uniqstrs_new ();
- muscle_init ();
+ {
+ char const *cp = getenv ("LC_CTYPE");