Skip to content

Fix UTF8 filenames not being matched by gcc -e output parsing #178

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

Closed
wants to merge 2 commits into from

Conversation

facchinm
Copy link
Member

Starting from 81eadf3, ctags is fed only with sketch code after the gcc -e pass.
If the filename contains non-ASCII characters, the string matching at https://github.com/arduino/arduino-builder/blob/master/src/arduino.cc/builder/filter_sketch_source.go#L59 returns false because utils.ParseCppString only treats ASCII strings.

This patch fixes this behaviour and adds some tests to demonstrate the functionality. All tests are passing.

@ArduinoBot
Copy link
Contributor

✅ Build completed.

⬇️ Build URL: http://downloads.arduino.cc/PR/arduino-builder/arduino-builder-178.zip

ℹ️ To test this build:

  1. Replace arduino-builder binary (you can find it where you installed the IDE) with the provided one

Implementation borrowed from net/mail package (message.go)
Solves arduino/Arduino#5277

Signed-off-by: Martino Facchin <[email protected]>
@facchinm
Copy link
Member Author

Superseded by #195

@facchinm facchinm closed this Nov 23, 2016
@facchinm facchinm deleted the utf8_strings branch November 29, 2016 11:07
@cmaglie cmaglie modified the milestone: 1.3.22 Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants