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 Jun 20, 2023. It is now read-only.
Hello. EditorConfig supports charset Latin1 with setting charset = latin1 but Atom (1.30.0) does not recognize it like so. It has to be set as ISO 8859-1 (or Western (Windows 1252), actually).
I've implemented this fix:
diff -C5 orig/editorconfig/index.js .atom/packages/editorconfig/index.js*** orig/editorconfig/index.js--- .atom/packages/editorconfig/index.js****************** 221,230 ****--- 221,235 ----
settings.charset = ('charset' in config) ?
config.charset.replace(/-/g, '').toLowerCase() :
'auto';
+ if (settings.charset === 'latin1') {+ /* Atom knows nothing about Latin1... */+ settings.charset = 'iso88591';+ }+
ecfg.applySettings();
}).catch(Error, e => {
console.warn(`atom-editorconfig: ${e}`);
});
}
Hope you can consider it for merge.
Regards!
PS & disclaimer: ⚠️ I tried forking the project to make a pull request but I just found that v2.2.2 on GitHub is not the same v2.2.2 on atom.io. That is, the fork does not match what can be downloaded for installation...
Hello. EditorConfig supports charset Latin1 with setting
charset = latin1
but Atom (1.30.0) does not recognize it like so. It has to be set asISO 8859-1
(orWestern (Windows 1252)
, actually).I've implemented this fix:
Hope you can consider it for merge.
Regards!
Involved .editorconfig-files
Directory structure
Skipped.
Installed packages
The text was updated successfully, but these errors were encountered: