From 5e4b4bbacdb40eeabb6568e4965b1c9da43fc629 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 28 Apr 2020 18:05:08 +0300 Subject: [PATCH 1/2] Fix "UnicodeDecodeError: 'utf-8' codec can't decode byte" when non-Latin chars are used in project path // Resolve #3481 --- HISTORY.rst | 5 +++++ docs | 2 +- platformio/proc.py | 6 +----- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index bfac38ae4e..d7c8bf40b2 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -6,6 +6,11 @@ Release Notes PlatformIO Core 4 ----------------- +4.3.3 (2020-??-??) +~~~~~~~~~~~~~~~~~~ + +* Fixed "UnicodeDecodeError: 'utf-8' codec can't decode byte" when non-Latin chars are used in project path (`issue #3481 `_) + 4.3.2 (2020-04-28) ~~~~~~~~~~~~~~~~~~ diff --git a/docs b/docs index bff1fc845b..256c255e89 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit bff1fc845ba76ef25d692ba6079123148f783048 +Subproject commit 256c255e89dad85af1c9a7177f606bac3c282c6c diff --git a/platformio/proc.py b/platformio/proc.py index 1937b257a8..80e50201a0 100644 --- a/platformio/proc.py +++ b/platformio/proc.py @@ -20,7 +20,6 @@ from platformio import exception from platformio.compat import ( - PY2, WINDOWS, get_filesystem_encoding, get_locale_encoding, @@ -31,10 +30,7 @@ class AsyncPipeBase(object): def __init__(self): self._fd_read, self._fd_write = os.pipe() - if PY2: - self._pipe_reader = os.fdopen(self._fd_read) - else: - self._pipe_reader = os.fdopen(self._fd_read, encoding="utf-8") + self._pipe_reader = os.fdopen(self._fd_read) self._buffer = "" self._thread = Thread(target=self.run) self._thread.start() From 72e7492a78a3a050df8af0c5a83fd7d4d48186f1 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 28 Apr 2020 18:06:46 +0300 Subject: [PATCH 2/2] Bump version to 4.3.3 --- HISTORY.rst | 2 +- docs | 2 +- platformio/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index d7c8bf40b2..a2bf6ad8d2 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -6,7 +6,7 @@ Release Notes PlatformIO Core 4 ----------------- -4.3.3 (2020-??-??) +4.3.3 (2020-04-28) ~~~~~~~~~~~~~~~~~~ * Fixed "UnicodeDecodeError: 'utf-8' codec can't decode byte" when non-Latin chars are used in project path (`issue #3481 `_) diff --git a/docs b/docs index 256c255e89..790be9c199 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 256c255e89dad85af1c9a7177f606bac3c282c6c +Subproject commit 790be9c1994750272d1312b0b4f4b50ba1973071 diff --git a/platformio/__init__.py b/platformio/__init__.py index 2c57b84162..78bda530ce 100644 --- a/platformio/__init__.py +++ b/platformio/__init__.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -VERSION = (4, 3, 2) +VERSION = (4, 3, 3) __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio"