Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the reason for not showing encoding in the status line right from the start? #86

Open
ams-tschoening opened this issue Nov 11, 2019 · 0 comments

Comments

@ams-tschoening
Copy link

Looking for another way to deal with #85, I configured the default_encoding for Perl files to be Western (Windows 1252). Intention was that if an .editorconfig defining utf-8 is available, that will simply override the Perl-specific default of Sublime and otherwise using windows-1252 is the right thing to do.

This seems to work as intended, but initially loading a Perl file containing ASCII only with having utf-8 configured in .editorconfig shows Western (Windows 1252) as the current encoding. Only after saving the file this gets changed to UTF-8:

Clipboard01
Clipboard02
Clipboard03

The reason most likely is that view.set_encoding(...) is only called in apply_pre_save instead of in apply_config, like is done for some other settings.

But why is that? If you want to be sure to not show a wrong encoding, that's exactly what happens now. :-) Would you like to change this to show the encoding right from the start? The same seems to apply to line endings.

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

No branches or pull requests

1 participant