Description of problem: I tried to open a file in gedit from command line. Steps to reproduce: Input "gedit /path/to/file.txt" in Terminal or open gedit and try to open a file via the menu. Using a fresh installed Fedora 21 alpha fully updated. Version-Release number of selected component: gedit-3.14.0-2.fc21 Additional info: reporter: libreport-2.3.0 backtrace_rating: 4 cmdline: /usr/bin/gedit --gapplication-service crash_function: g_variant_new_parsed_va executable: /usr/bin/gedit kernel: 3.17.1-302.fc21.x86_64 runlevel: N 5 type: CCpp uid: 1000 Truncated backtrace: Thread no. 1 (10 frames) #2 g_variant_new_parsed_va at gvariant-parser.c:2469 #3 g_variant_new_parsed at gvariant-parser.c:2525 #4 _gtk_source_encoding_get_default_candidates at gtksourceencoding.c:649 #5 set_default_candidate_encodings at gtksourcefileloader.c:276 #6 gtk_source_file_loader_constructed at gtksourcefileloader.c:320 #7 g_object_new_internal at gobject.c:1814 #8 g_object_new_valist at gobject.c:2034 #10 gtk_source_file_loader_new at gtksourcefileloader.c:843 #11 _gedit_tab_load at gedit/gedit-tab.c:2044 #12 _gedit_tab_new_from_location at gedit/gedit-tab.c:1351
Created attachment 949586 [details] File: backtrace
Created attachment 949587 [details] File: cgroup
Created attachment 949588 [details] File: core_backtrace
Created attachment 949589 [details] File: dso_list
Created attachment 949590 [details] File: environ
Created attachment 949591 [details] File: limits
Created attachment 949592 [details] File: maps
Created attachment 949593 [details] File: open_fds
Created attachment 949594 [details] File: proc_pid_status
Created attachment 949595 [details] File: var_log_messages
Thanks for the bug report. The bug comes from: https://git.gnome.org/browse/gtksourceview/tree/po/sr.po#n3343 > msgid "['UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16']" > msgstr "" > "[„UTF-8“, „CURRENT“, „ISO-8859-2“, „ISO-8859-5“, „WINDOWS-1250“, " > "„WINDOWS-1251“, „ISO-8859-15“]" Since translations cannot be trusted, I'll make the code more robust (use g_variant_parse() instead of g_variant_new_parsed()), and fix the translation.
Fixed: https://git.gnome.org/browse/gtksourceview/commit/?id=098f30f56b1a48cfcc59c0a286eb965012fbf34d https://git.gnome.org/browse/gtksourceview/commit/?id=b973645046b6dd16f691c5318856071278d97730 The commits are backported to the gnome-3-14 branch, so it'll be available for GtkSourceView 3.14.2.
An update to gedit in Fedora 21 has landed today and this bug has been fixed. Thanks Sébastien.