Skip to content

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