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

better charset detection #1268

Merged
merged 2 commits into from
Feb 19, 2022
Merged

better charset detection #1268

merged 2 commits into from
Feb 19, 2022

Conversation

unxed
Copy link
Contributor

@unxed unxed commented Feb 19, 2022

In Ubuntu 22.04 uchardet returns IBM852 on some source code files with pseudographic chars in comments. While not being perfect (it should be CP437), this guess is far better then WINDOWS-1252 (as in Ubuntu 20.04 on the same files) or UTF-8 (as if far2l did not understand uchardet return string).

This PR fixes far2l's understanding of uchardet return values like this.

@elfmz elfmz merged commit 7d80853 into elfmz:master Feb 19, 2022
@unxed unxed deleted the better_chardet branch February 19, 2022 22:34
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

Successfully merging this pull request may close these issues.

2 participants