turbo_tests icon indicating copy to clipboard operation
turbo_tests copied to clipboard

:x: (closable) Crash on : invalid byte sequence in US-ASCII

Open kriom opened this issue 1 year ago • 1 comments

Hi,

First, thank for you great gem,

Lately I've had test runs crash with this error :

#<Thread:0x00007796efaa1678 /usr/local/bundle/bundler/gems/turbo_tests-aeae4ff0f18f/lib/turbo_tests/runner.rb:189 run> terminated with exception (report_on_exception is true):
/usr/local/bundle/bundler/gems/turbo_tests-aeae4ff0f18f/lib/turbo_tests/runner.rb:191:in `split': invalid byte sequence in US-ASCII (ArgumentError)

              result = line.split(env["RSPEC_FORMATTER_OUTPUT_ID"])
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	from /usr/local/bundle/bundler/gems/turbo_tests-aeae4ff0f18f/lib/turbo_tests/runner.rb:191:in `block (2 levels) in start_subprocess'
	from /usr/local/bundle/bundler/gems/turbo_tests-aeae4ff0f18f/lib/turbo_tests/runner.rb:190:in `each_line'
	from /usr/local/bundle/bundler/gems/turbo_tests-aeae4ff0f18f/lib/turbo_tests/runner.rb:190:in `block in start_subprocess'
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

It seems that turbo tests does not support my rspec output when it contains non US-ASCII caractères like "é" or "è"

How can we fix it ? Does this have anything to do with the local LC_ALL (en_US.UTF-8) displayed in the error output?

I'm going to continue looking into this problem, but if anyone knows what to do, I'd be happy to help.

Thanks !

kriom avatar Nov 24 '24 09:11 kriom