projects
/
openwrt
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tools/bison: Update to 3.1
[openwrt/.git]
/
tools
/
bison
/
patches
/
010-intl-stub-compat.patch
diff --git
a/tools/bison/patches/010-intl-stub-compat.patch
b/tools/bison/patches/010-intl-stub-compat.patch
index 7690e10ed8ba159860446a497873973e3cb4e398..d2dfcadbabfed11ca759e56987a88c9ca879a739 100644
(file)
--- 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
--- a/src/main.c
+++ b/src/main.c
-@@ -
57,9 +57
,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);
setlocale (LC_ALL, "");
- (void) bindtextdomain (PACKAGE, LOCALEDIR);
- (void) bindtextdomain ("bison-runtime", LOCALEDIR);
@@
-11,5
+11,5
@@
+ bindtextdomain ("bison-runtime", LOCALEDIR);
+ textdomain (PACKAGE);
+ bindtextdomain ("bison-runtime", LOCALEDIR);
+ textdomain (PACKAGE);
- uniqstrs_new ();
-
+ {
+ char const *cp = getenv ("LC_CTYPE");