tr_segfault_fix.patch 960 B

12345678910111213141516171819202122232425
  1. diff -Nur xine-lib-1.1.18.1-old/src/xine-engine/xine.c xine-lib-1.1.18.1/src/xine-engine/xine.c
  2. --- xine-lib-1.1.18.1-old/src/xine-engine/xine.c 2010-04-15 17:34:34.920980153 +0300
  3. +++ xine-lib-1.1.18.1/src/xine-engine/xine.c 2010-04-15 17:36:18.330983403 +0300
  4. @@ -1710,7 +1710,7 @@
  5. _x_scan_plugins(this);
  6. #ifdef HAVE_SETLOCALE
  7. - if (!setlocale(LC_CTYPE, ""))
  8. + if (!setlocale(LC_CTYPE, "en_US.UTF-8"))
  9. xprintf(this, XINE_VERBOSITY_LOG, _("xine: locale not supported by C library\n"));
  10. #endif
  11. diff -Nur xine-lib-1.1.18.1-old/src/xine-utils/utils.c xine-lib-1.1.18.1/src/xine-utils/utils.c
  12. --- xine-lib-1.1.18.1-old/src/xine-utils/utils.c 2010-04-15 17:34:34.915980632 +0300
  13. +++ xine-lib-1.1.18.1/src/xine-utils/utils.c 2010-04-15 17:36:04.272983486 +0300
  14. @@ -564,7 +564,7 @@
  15. char *codeset = NULL;
  16. #ifdef HAVE_NL_LANGINFO
  17. - setlocale(LC_CTYPE, "");
  18. + setlocale(LC_CTYPE, "en_US.UTF-8");
  19. codeset = nl_langinfo(CODESET);
  20. #endif
  21. /*