Skip to content

Commit

Permalink
Merge pull request #23 from kkevlar/fix-click
Browse files Browse the repository at this point in the history
Fixed Platformios Click crashing within Bazel
  • Loading branch information
mum4k authored Mar 15, 2020
2 parents 2c44507 + 5ab5761 commit 882a88e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platformio/platformio.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ def _emit_build_action(ctx, project_dir):
env={
# The PlatformIO binary assumes that the build tools are in the path.
"PATH":"/bin:/usr/bin:/usr/local/bin:/usr/sbin:/sbin",

# Changes the Encoding to allow PlatformIO's Click to work as expected
# See https://github.com/mum4k/platformio_rules/issues/22
"LC_ALL":"C.UTF-8",
"LANG":"C.UTF-8",
},
execution_requirements={
# PlatformIO cannot be executed in a sandbox.
Expand Down

0 comments on commit 882a88e

Please sign in to comment.