Skip to content

Commit

Permalink
Use latin-1 encoding for reading interface file content
Browse files Browse the repository at this point in the history
Fixes #610

Signed-off-by: Jacob Perron <[email protected]>
  • Loading branch information
jacobperron committed Sep 30, 2021
1 parent 75964cb commit fdd7053
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rosidl_adapter/rosidl_adapter/action/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def convert_action_to_idl(package_dir, package_name, input_file, output_dir):
abs_input_file = package_dir / input_file
print(f'Reading input file: {abs_input_file}')
abs_input_file = package_dir / input_file
content = abs_input_file.read_text(encoding='utf-8')
content = abs_input_file.read_text(encoding='iso-8859-1')
action = parse_action_string(package_name, input_file.stem, content)

output_file = output_dir / input_file.with_suffix('.idl').name
Expand Down
2 changes: 1 addition & 1 deletion rosidl_adapter/rosidl_adapter/msg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def convert_msg_to_idl(package_dir, package_name, input_file, output_dir):
abs_input_file = package_dir / input_file
print(f'Reading input file: {abs_input_file}')
abs_input_file = package_dir / input_file
content = abs_input_file.read_text(encoding='utf-8')
content = abs_input_file.read_text(encoding='iso-8859-1')
msg = parse_message_string(package_name, input_file.stem, content)

output_file = output_dir / input_file.with_suffix('.idl').name
Expand Down
2 changes: 1 addition & 1 deletion rosidl_adapter/rosidl_adapter/srv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def convert_srv_to_idl(package_dir, package_name, input_file, output_dir):
abs_input_file = package_dir / input_file
print(f'Reading input file: {abs_input_file}')
abs_input_file = package_dir / input_file
content = abs_input_file.read_text(encoding='utf-8')
content = abs_input_file.read_text(encoding='iso-8859-1')
srv = parse_service_string(package_name, input_file.stem, content)

output_file = output_dir / input_file.with_suffix('.idl').name
Expand Down

0 comments on commit fdd7053

Please sign in to comment.