diff --git a/plugins/flutter/CHANGELOG.md b/plugins/flutter/CHANGELOG.md index de50bbed..4687af75 100644 --- a/plugins/flutter/CHANGELOG.md +++ b/plugins/flutter/CHANGELOG.md @@ -25,6 +25,6 @@ The initial version. Hello, world! + Add `math.isnan` and `math.isinf` + Fix a bug of `__checkType` -## 0.5.0+1 +## 0.5.0+2 + Fix a bug on Windows \ No newline at end of file diff --git a/plugins/flutter/pubspec.yaml b/plugins/flutter/pubspec.yaml index 47c0fef7..45458116 100644 --- a/plugins/flutter/pubspec.yaml +++ b/plugins/flutter/pubspec.yaml @@ -1,6 +1,6 @@ name: pocketpy description: A lightweight Python interpreter for game engines. -version: 0.5.0+1 +version: 0.5.0+2 homepage: https://pocketpy.dev repository: https://github.com/blueloveth/pocketpy diff --git a/plugins/flutter/src/pocketpy.h b/plugins/flutter/src/pocketpy.h index 22675ce8..774a7ee9 100644 --- a/plugins/flutter/src/pocketpy.h +++ b/plugins/flutter/src/pocketpy.h @@ -399,7 +399,8 @@ public: _Str __lstrip() const { std::string copy(*_s); copy.erase(copy.begin(), std::find_if(copy.begin(), copy.end(), [](char c) { - return !std::isspace(c); + // std::isspace(c) does not working on windows (Debug) + return c != ' ' && c != '\t' && c != '\r' && c != '\n'; })); return _Str(copy); } diff --git a/plugins/godot/godot-cpp b/plugins/godot/godot-cpp index d8e7e998..764a0a18 160000 --- a/plugins/godot/godot-cpp +++ b/plugins/godot/godot-cpp @@ -1 +1 @@ -Subproject commit d8e7e9986433707a21b796d510cccb6f098cf91c +Subproject commit 764a0a18407dad82e0ad7a878bab42097bfa1647 diff --git a/plugins/unity/com.bl.pocketpy/Plugins/iOS/pocketpy.h b/plugins/unity/com.bl.pocketpy/Plugins/iOS/pocketpy.h index 22675ce8..774a7ee9 100644 --- a/plugins/unity/com.bl.pocketpy/Plugins/iOS/pocketpy.h +++ b/plugins/unity/com.bl.pocketpy/Plugins/iOS/pocketpy.h @@ -399,7 +399,8 @@ public: _Str __lstrip() const { std::string copy(*_s); copy.erase(copy.begin(), std::find_if(copy.begin(), copy.end(), [](char c) { - return !std::isspace(c); + // std::isspace(c) does not working on windows (Debug) + return c != ' ' && c != '\t' && c != '\r' && c != '\n'; })); return _Str(copy); } diff --git a/src/str.h b/src/str.h index ab102d39..6e040340 100644 --- a/src/str.h +++ b/src/str.h @@ -198,7 +198,8 @@ public: _Str __lstrip() const { std::string copy(*_s); copy.erase(copy.begin(), std::find_if(copy.begin(), copy.end(), [](char c) { - return !std::isspace(c); + // std::isspace(c) does not working on windows (Debug) + return c != ' ' && c != '\t' && c != '\r' && c != '\n'; })); return _Str(copy); }