Fix encoding error while printing descriptions in stdout

Reviewed By: jvillard

Differential Revision: D2815608

fb-gh-sync-id: bd7691a
shipit-source-id: bd7691a
master
martinoluca 9 years ago committed by facebook-github-bot-7
parent 941a1c02fb
commit fc589ccf34

@ -234,7 +234,7 @@ def print_and_save_errors(json_report, bugs_out):
errors = utils.load_json_from_path(json_report)
errors = filter(_is_user_visible, errors)
text = _text_of_report_list(errors)
print(text)
print(text.encode(config.LOCALE))
with codecs.open(bugs_out, 'w', encoding=config.LOCALE) as file_out:
file_out.write(text)

Loading…
Cancel
Save