From: Marcus Comstedt Date: Sat, 26 Apr 2014 13:30:12 +0000 (+0200) Subject: sigrok-cross-android: Fix brokenness in mbstowcs/wcstombs in Python patch X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7f15b9843cc7fb97918086dad11d82316b3e7b24;p=sigrok-util.git sigrok-cross-android: Fix brokenness in mbstowcs/wcstombs in Python patch --- diff --git a/cross-compile/android/Python-3.3.3.patch b/cross-compile/android/Python-3.3.3.patch index 1b34280..7a71928 100644 --- a/cross-compile/android/Python-3.3.3.patch +++ b/cross-compile/android/Python-3.3.3.patch @@ -85,7 +85,7 @@ diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 832df53..c43e5e9 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c -@@ -810,6 +810,44 @@ Py_SetPythonHome(wchar_t *home) +@@ -810,6 +810,51 @@ Py_SetPythonHome(wchar_t *home) default_home = home; } @@ -96,15 +96,20 @@ index 832df53..c43e5e9 100644 + size_t size = 0; + if (in) + { -+ while(*in && size= 0xdc80 && c <= 0xdcff) @@ -123,6 +128,8 @@ index 832df53..c43e5e9 100644 + if (dest) + dest[i]=c; + } ++ if (dest && i