aboutsummaryrefslogtreecommitdiffstats
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.patch22
1 files changed, 10 insertions, 12 deletions
diff --git a/tools/bison/patches/010-intl-stub-compat.patch b/tools/bison/patches/010-intl-stub-compat.patch
index d2dfcadbab..8108c53c61 100644
--- a/tools/bison/patches/010-intl-stub-compat.patch
+++ b/tools/bison/patches/010-intl-stub-compat.patch
@@ -1,15 +1,13 @@
--- a/src/main.c
+++ b/src/main.c
-@@ -60,9 +60,9 @@ main (int argc, char *argv[])
- {
- set_program_name (argv[0]);
- setlocale (LC_ALL, "");
-- (void) bindtextdomain (PACKAGE, LOCALEDIR);
-- (void) bindtextdomain ("bison-runtime", LOCALEDIR);
-- (void) textdomain (PACKAGE);
-+ bindtextdomain (PACKAGE, LOCALEDIR);
-+ bindtextdomain ("bison-runtime", LOCALEDIR);
-+ textdomain (PACKAGE);
-
+@@ -66,8 +66,8 @@ main (int argc, char *argv[])
{
- char const *cp = getenv ("LC_CTYPE");
+ char *cp = NULL;
+ char const *localedir = relocate2 (LOCALEDIR, &cp);
+- (void) bindtextdomain (PACKAGE, localedir);
+- (void) bindtextdomain ("bison-runtime", localedir);
++ bindtextdomain (PACKAGE, localedir);
++ bindtextdomain ("bison-runtime", localedir);
+ free (cp);
+ }
+ (void) textdomain (PACKAGE);