Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-US-ASCII characters stop ceedling's rake in an unhelpful way #888

Open
jnz86 opened this issue May 2, 2024 · 0 comments
Open

Non-US-ASCII characters stop ceedling's rake in an unhelpful way #888

jnz86 opened this issue May 2, 2024 · 0 comments

Comments

@jnz86
Copy link

jnz86 commented May 2, 2024

I copied a string from the browser, a made it into a C const, my tests stopped working. I commented out all changes, but that wasn't enough, a non-US-ASCII character existing in the file even as a comment was enough to stop tests from working.

Turns out, the curly apostrophe is a killer. I found people complaining about this with Ruby, and Rake. The error that could be more helpful:

--------------------
OVERALL TEST SUMMARY
--------------------

No tests executed.


stderr:
rake aborted!
ArgumentError: invalid byte sequence in US-ASCII
/var/lib/gems/3.0.0/gems/ceedling-0.31.1/lib/ceedling/test_includes_extractor.rb:80:in `gsub'
/var/lib/gems/3.0.0/gems/ceedling-0.31.1/lib/ceedling/test_includes_extractor.rb:80:in `extract_source_include_from_file'
/var/lib/gems/3.0.0/gems/ceedling-0.31.1/lib/ceedling/test_includes_extractor.rb:24:in `parse_test_file_source_include'
...

While not a Ceedling "issue", there may be solutions. There are specified encodings and a "magic encoding' option for people using Ruby with other languages, among others I'm sure.

Even if not addressed in Ceedling, this is at least a head's up for anyone with the same issue.

@jnz86 jnz86 changed the title Non-US-ASCII stop ceedling's rake in an unhelpful way Non-US-ASCII characters stop ceedling's rake in an unhelpful way May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants