From 835ee73b412dba7950cd9a63b0d242973af68ce5 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Mon, 9 Apr 2007 05:01:20 -0500 Subject: [PATCH] Use g_filename_display_name instead of g_filename_to_utf8 --- moo/mooedit/moolangmgr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/moo/mooedit/moolangmgr.c b/moo/mooedit/moolangmgr.c index 30b4d26c..bbf9b1e3 100644 --- a/moo/mooedit/moolangmgr.c +++ b/moo/mooedit/moolangmgr.c @@ -307,9 +307,7 @@ lang_mgr_get_lang_for_bak_filename (MooLangMgr *mgr, read_langs (mgr); - utf8_name = g_filename_to_utf8 (filename, -1, NULL, NULL, NULL); - g_return_val_if_fail (utf8_name != NULL, NULL); - + utf8_name = g_filename_display_name (filename); len = strlen (utf8_name); for (i = 0; i < G_N_ELEMENTS (bak_globs); ++i)