Commit 214bf852d8dab02bf62900e61facef2c9f48f2f4

Benno Schulenberg 2018-04-21T11:08:08

localcharset: short-circuit the search for an alias on a Mac * lib/localcharset.c (get_charset_aliases): Add a tautological UTF-8 entry to speed up the search for this case. Most machines default to a UTF-8 locale nowadays, so begin the list of aliases with a dummy UTF-8 entry so it will be found immediately and a time-consuming search through the rest of the list is avoided.