X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2Fbison%2Fpatches%2F010-intl-stub-compat.patch;h=d2dfcadbabfed11ca759e56987a88c9ca879a739;hb=71978cf105a158cc682049c203bd0739ed3ac356;hp=2cd720b68cf89378be52f04ed893cc17162f510b;hpb=dde7e0d6c578619233d5c049a9d17dcf85a5fe5f;p=openwrt%2F.git 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");