Skip to content

Commit

Permalink
Fix "UnicodeDecodeError: 'utf-8' codec can't decode byte" when non-La…
Browse files Browse the repository at this point in the history
…tin chars are used in project path // Resolve #3481
  • Loading branch information
ivankravets committed Apr 28, 2020
1 parent 6146b58 commit 5e4b4bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/platformio/platformio-core/issues/3481>`_)

4.3.2 (2020-04-28)
~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion docs
6 changes: 1 addition & 5 deletions platformio/proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from platformio import exception
from platformio.compat import (
PY2,
WINDOWS,
get_filesystem_encoding,
get_locale_encoding,
Expand All @@ -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()
Expand Down

0 comments on commit 5e4b4bb

Please sign in to comment.