Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

More specific error message when non-UTF-8 files opened#7787

Merged
njx merged 1 commit intoreleasefrom
pflynn/encoding-error-string
May 8, 2014
Merged

More specific error message when non-UTF-8 files opened#7787
njx merged 1 commit intoreleasefrom
pflynn/encoding-error-string

Conversation

@peterflynn
Copy link
Copy Markdown
Member

Give a more specific error message in cases where Brackets refuses to open a file that is not UTF-8 (message is also shown when trying to open binary files).

The right error code is already returned from the native shell -- we just need to plumb it down to FileSystem and add a case-specific string for it.

I haven't tested this on Mac but I think this will give us the same benefit there too -- it looks like the same brackets.fs-level encoding error code is returned in the right cases there already. But if not, it's not critical since Mac has always refused to open UTF-8 (whereas for Win it's a new and potentially confusing behavior).

… open

a file that is not UTF-8 (message is also shown when trying to open binary
files).

The right error code is already returned from the native shell -- we just
need to plumb it down to FileSystem and add a case-specific string for it.
@njx
Copy link
Copy Markdown

njx commented May 8, 2014

Looks fine to me and works on the Mac. Merging.

njx pushed a commit that referenced this pull request May 8, 2014
More specific error message when non-UTF-8 files opened
@njx njx merged commit e65b81b into release May 8, 2014
@njx njx deleted the pflynn/encoding-error-string branch May 8, 2014 18:54
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