Skip to content

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