More robust check for UTF-8 charset
@mzabaluev
Submitted by Mikhail Zabaluev Link to original bug (#738044)
Description
g_get_charset() uses a case-sensitive substring match for "UTF-8" in order to decide if the character set specified by the environment is UTF-8. The matching should either be made strict, or then allow case-insensitivity and actually use the aliases rather than shambolic heuristics.
This dates back from commit b5fa5b98 made in 2001 while working on bug #58195.
Version: 2.42.x