You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Correctly detect the encoding or be able to use a default value while opening. #3
Please don't close this. A default encoding config is not the same as encoding detection. Atom should try to guess the encoding as best as it can and only if it fails, fallback to the default encoding. @kevinsawicki
The issue is the quality of detection libraries, there didn't seem to be one that correctly guessed the desired encoding using the examples from the original issue, atom/atom#1806
There is an auto-detect option in the encoding selector dialog that can be used to try to guess when needed.
IMHO, missing library shouldn't be a factor in this issue. If there isn't one, it should be created or maybe patch the one that could get the job done.
The main issue with Atom is that it will try to open files in UTF8 (or the default encoding, if set), which will potentially break any non-UTF8 files. And that, imho, is not an acceptable behavior for any editor. This should be tagged as 1.0 blocker.
Should I understand that this bug is not going to be reopened
I'd prefer to start a new issue on atom/atom to track this. If auto-detect on open is added, it will have to be done in core since that is where the buffer's are built. This package just handles changing the encoding after the editor is opened via the Editor::setEncoding API.
Would you mind opening an issue there? It will have more visibility than this package repo which few people are probably watching since it is relatively new.
Activity
kevinsawicki commentedon Nov 11, 2014
I think it makes sense to add a default encoding to the config, see atom/atom#4141 for more details.
alexandernst commentedon Nov 11, 2014
Please don't close this. A default encoding config is not the same as encoding detection. Atom should try to guess the encoding as best as it can and only if it fails, fallback to the default encoding. @kevinsawicki
kevinsawicki commentedon Nov 11, 2014
The issue is the quality of detection libraries, there didn't seem to be one that correctly guessed the desired encoding using the examples from the original issue, atom/atom#1806
There is an auto-detect option in the encoding selector dialog that can be used to try to guess when needed.
alexandernst commentedon Nov 11, 2014
IMHO, missing library shouldn't be a factor in this issue. If there isn't one, it should be created or maybe patch the one that could get the job done.
The main issue with Atom is that it will try to open files in UTF8 (or the default encoding, if set), which will potentially break any non-UTF8 files. And that, imho, is not an acceptable behavior for any editor. This should be tagged as 1.0 blocker.
alexandernst commentedon Nov 11, 2014
Also, maybe this could help:
alexandernst commentedon Nov 12, 2014
@kevinsawicki Should I understand that this bug is not going to be reopened or did you just miss my comments?
kevinsawicki commentedon Nov 12, 2014
I'd prefer to start a new issue on atom/atom to track this. If auto-detect on open is added, it will have to be done in core since that is where the buffer's are built. This package just handles changing the encoding after the editor is opened via the
Editor::setEncodingAPI.Would you mind opening an issue there? It will have more visibility than this package repo which few people are probably watching since it is relatively new.
alexandernst commentedon Nov 12, 2014
@kevinsawicki Ok, I'll open a new bug in /atom