forked from geany/geany
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better handle badly-written encoding names
Make encoding name comparison more permissive, finding names that are very likely to refer to the same encoding. For example, "utf8" now matches "UTF-8", and "iso8859_1" matches "ISO-8859-1". This makes encodings_get_idx_from_charset() and encodings_get_from_charset() more permissive, and allow to normalize an encoding name. It is used to better handle user-provided encodings (e.g. one found by a regex search) by normalizing it to the Geany name. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5666 ea778897-0a13-0410-b9d1-a72fbfd435f5
- Loading branch information
Showing
2 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters