Skip to content

Commit

Permalink
normalize strings to utf-8 before setting as environment variable (#1593
Browse files Browse the repository at this point in the history
)

* normalize the string to utf-8 before passing to environment block.

* convert from unicode to string when setting env variable (#21)
  • Loading branch information
kejxu authored and dirk-thomas committed Aug 3, 2020
1 parent df09637 commit 32e1ebe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/roslaunch/src/roslaunch/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ def setup_env(node, machine, master_uri, env=None):
if ns[-1] == '/':
ns = ns[:-1]
if ns:
d[rosgraph.ROS_NAMESPACE] = ns
d[rosgraph.ROS_NAMESPACE] = str(ns)
for name, value in node.env_args:
d[name] = value
d[str(name)] = str(value)

return d

Expand Down

0 comments on commit 32e1ebe

Please sign in to comment.