Use case-insensitive comparison for encodings

This commit is contained in:
Yevgen Muntyan 2006-04-26 14:11:38 -05:00
parent f5f0a499c5
commit 2281752145

View File

@ -595,7 +595,7 @@ do_write (MooEdit *edit,
g_return_val_if_fail (filename != NULL, FALSE);
if (encoding && (!strcmp (encoding, "UTF-8") || !strcmp (encoding, "UTF8")))
if (encoding && (!g_ascii_strcasecmp (encoding, "UTF-8") || !g_ascii_strcasecmp (encoding, "UTF8")))
encoding = NULL;
file = g_io_channel_new_file (filename, "w", error);