no-setlocale.patch 551 B

123456789101112131415161718
  1. --- contrib/tools/bison/src/main.c (index)
  2. +++ contrib/tools/bison/src/main.c (working tree)
  3. @@ -63,15 +63,6 @@ main (int argc, char *argv[])
  4. #define DEPENDS_ON_LIBINTL 1
  5. set_program_name (argv[0]);
  6. setlocale (LC_ALL, "");
  7. - {
  8. - char *cp = NULL;
  9. - char const *localedir = relocate2 (LOCALEDIR, &cp);
  10. - bindtextdomain ("bison", localedir);
  11. - bindtextdomain ("bison-gnulib", localedir);
  12. - bindtextdomain ("bison-runtime", localedir);
  13. - free (cp);
  14. - }
  15. - textdomain ("bison");
  16. {
  17. char const *cp = getenv ("LC_CTYPE");