Skip to content

Commit c3b8419

Browse files
committed
try to fix sys.getfilesystemdefaultencoding() that return None, and make few os function and docutils to crash.
1 parent 5958802 commit c3b8419

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- Python-2.7.2.orig/Python/bltinmodule.c 2012-03-30 01:44:57.018079845 +0200
2+
+++ Python-2.7.2/Python/bltinmodule.c 2012-03-30 01:45:02.650079649 +0200
3+
@@ -22,7 +22,7 @@
4+
#elif defined(__APPLE__)
5+
const char *Py_FileSystemDefaultEncoding = "utf-8";
6+
#else
7+
-const char *Py_FileSystemDefaultEncoding = NULL; /* use default */
8+
+const char *Py_FileSystemDefaultEncoding = "utf-8"; /* use default */
9+
#endif
10+
11+
/* Forward */

recipes/python/recipe.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function prebuild_python() {
2323
try patch -p1 < $RECIPE_python/patches/fix-locale.patch
2424
try patch -p1 < $RECIPE_python/patches/fix-gethostbyaddr.patch
2525
try patch -p1 < $RECIPE_python/patches/fix-setup-flags.patch
26+
try patch -p1 < $RECIPE_python/patches/fix-filesystemdefaultencoding.patch
2627
try patch -p1 < $RECIPE_python/patches/custom-loader.patch
2728
try patch -p1 < $RECIPE_python/patches/verbose-compilation.patch
2829

0 commit comments

Comments
 (0)