Skip to content

Unescape special characters in dependency files #2074

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

Merged
merged 1 commit into from
May 19, 2014

Conversation

matthijskooijman
Copy link
Collaborator

When a path contains spaces (or other special characters, probably), gcc
escapes them with a \ in the generated .d files. This previously caused
problems when parsing these files, causing recompiles to happen even
when not needed.

This applies a rather simple approach to unescaping these strings, which
seems to be sufficient because the file format of the .d files is so
predictable (e.g., we don't actuall split on colons or spaces when
parsing it).

When a path contains spaces (or other special characters, probably), gcc
escapes them with a \ in the generated .d files. This previously caused
problems when parsing these files, causing recompiles to happen even
when not needed.

This applies a rather simple approach to unescaping these strings, which
seems to be sufficient because the file format of the .d files is so
predictable (e.g., we don't actually split on colons or spaces when
parsing it).
cmaglie added a commit that referenced this pull request May 19, 2014
Unescape special characters in dependency files
@cmaglie cmaglie merged commit de1e65f into arduino:ide-1.5.x May 19, 2014
@cmaglie
Copy link
Member

cmaglie commented May 19, 2014

Thanks!

@matthijskooijman matthijskooijman deleted the ide-1.5.x-dep-spaces branch June 12, 2015 15:36
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.

2 participants