Skip to content

❌ (closable) Crash on : invalid byte sequence in US-ASCII #65

Description

@kryyc

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 !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions