Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Fix issue16, proper handling of special charaters in file names #18

Merged
merged 5 commits into from
Dec 20, 2011

Conversation

tvoliter
Copy link
Contributor

Added JSON escaping function that is used by readdir to handle Mac files with special characters.
This fixes issue #16

Note, this will likely need to be revisited when we get Brackets running on Windows since the special characters allowed on each platform are different.

case '\v': result.append("\\v"); break;
// Note: single quotes are OK for JSON
case '\"': result.append("\\\""); break; // double quote
case '\\': result.append("\\\\"); break; // backsplash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: backsplash

gruehle added a commit that referenced this pull request Dec 20, 2011
Fix issue16, proper handling of special charaters in file names
@gruehle gruehle merged commit 34837a2 into master Dec 20, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants