Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Default buffer encoding to core.fileEncoding config - #4141

Merged
kevinsawicki merged 5 commits into
masterfrom
ks-file-encoding-config
Nov 11, 2014
Merged

kevinsawicki merged 5 commits into
masterfrom
ks-file-encoding-config

Conversation

@kevinsawicki

Copy link
Copy Markdown
Contributor

Adds core.fileEncoding which will be used as the editor/buffer's default encoding when reading/writing.

I went with core instead of the editor for the prefix since this default should be respected for any packages reading/writing files, regardless of whether they are using the editor/buffer API or not.

screen shot 2014-11-10 at 5 59 01 pm

Closes atom/encoding-selector#3

Comment thread src/config-schema.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Two entries for windows1250?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

whoa, thanks

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, windows1252 was missing

@kevinsawicki
kevinsawicki force-pushed the ks-file-encoding-config branch from 8833dc6 to d6881e1 Compare November 11, 2014 17:03
@kevinsawicki
kevinsawicki force-pushed the ks-file-encoding-config branch from d6881e1 to e36eaa5 Compare November 11, 2014 17:47
kevinsawicki added a commit that referenced this pull request Nov 11, 2014
Default buffer encoding to core.fileEncoding config
@kevinsawicki
kevinsawicki merged commit 658dc8e into master Nov 11, 2014
@kevinsawicki
kevinsawicki deleted the ks-file-encoding-config branch November 11, 2014 18:07
@demon386

Copy link
Copy Markdown

Is it possible to use "auto-detect" as value for core.fileEncoding?

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.

Correctly detect the encoding or be able to use a default value while opening.

3 participants