Skip to content

Commit

Permalink
Run line profiler with Python in UTF-8 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jitseniesen committed Apr 17, 2024
1 parent 4e8ed98 commit cc6010e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder_line_profiler/spyder/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def start(self, wdir=None, args=None):
self.clear_data()
self.error_output = ''

p_args = ['-m', 'kernprof', '-lvb', '-o', self.DATAPATH]
p_args = ['-X', 'utf8', '-m', 'kernprof', '-lvb', '-o', self.DATAPATH]
if os.name == 'nt':
# On Windows, one has to replace backslashes by slashes to avoid
# confusion with escape characters (otherwise, for example, '\t'
Expand Down

0 comments on commit cc6010e

Please sign in to comment.