Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Add encoding support - #33

Merged
kevinsawicki merged 25 commits into
masterfrom
ks-encodings
Oct 28, 2014
Merged

kevinsawicki merged 25 commits into
masterfrom
ks-encodings

Conversation

@kevinsawicki

Copy link
Copy Markdown
Contributor

Pathwatcher got encoding support in atom/node-pathwatcher#36 so this integrates that support into the TextBuffer API.

Basically adds a getEncoding and setEncoding and reloads the contents from disk when the encoding changes.

Closes #22

@benogle

benogle commented Oct 28, 2014

Copy link
Copy Markdown
Contributor

Look at all those pending builds. WTF travis.

@kevinsawicki

Copy link
Copy Markdown
Contributor Author

Look at all those pending builds.

Yeah, I saw this on an apm PR the other day, super long wait times.

@kevinsawicki

Copy link
Copy Markdown
Contributor Author

@kevinsawicki

Copy link
Copy Markdown
Contributor Author

The fixture included here was originally taken from atom/atom#3774

Being able to undo the encoding change can lead to file
corruption if the re-encoding is reverted and then saved
using the new encoding.
@kevinsawicki

Copy link
Copy Markdown
Contributor Author

Okay, going to merge this once the build goes 🍏 unless there is any more feedback.

kevinsawicki added a commit that referenced this pull request Oct 28, 2014
@kevinsawicki
kevinsawicki merged commit e04d359 into master Oct 28, 2014
@kevinsawicki
kevinsawicki deleted the ks-encodings branch October 28, 2014 23:02
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.

Add encoding support

2 participants