Skip to content

Commit

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

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

* convert from unicode to string when setting env variable (ros#21)
  • Loading branch information
kejxu authored and tahsinkose committed Apr 15, 2019
1 parent e5c92b7 commit db08d7d
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 @@ -209,9 +209,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 db08d7d

Please sign in to comment.