Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.3KB

  1. --- Python-3.8.7/Modules/_localemodule.c.orig 2020-12-26 06:59:08.920163200 +0100
  2. +++ Python-3.8.7/Modules/_localemodule.c 2020-12-26 07:01:52.023610900 +0100
  3. @@ -177,7 +177,7 @@
  4. #define GET_LOCALE_STRING(ATTR) PyUnicode_DecodeLocale(lc->ATTR, NULL)
  5. #else /* MS_WINDOWS */
  6. /* Use _W_* fields of Windows struct lconv */
  7. -#define GET_LOCALE_STRING(ATTR) PyUnicode_FromWideChar(lc->_W_ ## ATTR, -1)
  8. +#define GET_LOCALE_STRING(ATTR) PyUnicode_DecodeLocale(lc->ATTR, NULL)
  9. #endif /* MS_WINDOWS */
  10. int res = -1;
  11. @@ -249,7 +249,7 @@
  12. #ifdef MS_WINDOWS
  13. /* Use _W_* fields of Windows struct lconv */
  14. -#define GET_LOCALE_STRING(ATTR) PyUnicode_FromWideChar(lc->_W_ ## ATTR, -1)
  15. +#define GET_LOCALE_STRING(ATTR) PyUnicode_DecodeLocale(lc->ATTR, NULL)
  16. #else
  17. #define GET_LOCALE_STRING(ATTR) PyUnicode_DecodeLocale(lc->ATTR, NULL)
  18. #endif
  19. --- Python-3.8.7/Python/fileutils.c.orig 2020-12-21 17:25:24.000000000 +0100
  20. +++ Python-3.8.7/Python/fileutils.c 2020-12-26 06:52:52.517357800 +0100
  21. @@ -1975,7 +1975,7 @@
  22. #define GET_LOCALE_STRING(ATTR) PyUnicode_DecodeLocale(lc->ATTR, NULL)
  23. #else /* MS_WINDOWS */
  24. /* Use _W_* fields of Windows strcut lconv */
  25. -#define GET_LOCALE_STRING(ATTR) PyUnicode_FromWideChar(lc->_W_ ## ATTR, -1)
  26. +#define GET_LOCALE_STRING(ATTR) PyUnicode_DecodeLocale(lc->ATTR, NULL)
  27. #endif /* MS_WINDOWS */
  28. int res = -1;