GNOME Bugzilla – Bug 148130
autocompletion (ctrl+l, location bar) works bad with UTF-8 folder names
Last modified: 2006-08-25 07:40:48 UTC
Distribution: Debian testing/unstable Package: nautilus Severity: normal Version: GNOME2.7.1 unspecified Gnome-Distributor: Debian Synopsis: autocompletion (ctrl+l, location bar) works bad with UTF-8 folder names Bugzilla-Product: nautilus Bugzilla-Component: general Bugzilla-Version: unspecified Description: Description of Problem: There's a bug in nautilus Ctrl+L autocompletion. It's there at least since 2.4. If there's a folder with non-latin name (say russian unicode), it will autocomplete only a part of the name, then user should write one letter and another part of the name will be autocompleted, etc. Steps to reproduce the problem: 1. Create a folder named "ÐаÑÑинки" or "СкаÑивание" in UTF-8 2. Try to autocomplete it with Ctrl+L Actual Results: If I'll try to type say "ÐаÑÑинки", Nautilus will show only "ÐаÑÑи" after typing "K" (there's no other folder that even starts with "Ð" here) Expected Results: It must autocomplete the full unicode name, just like latin named folder names How often does this happen? Every time I try to use Ctrl+L in Spatial mode or Location bar in Navigational mode. Additional Information: I use ru_RU.UTF-8 locale. Looks like strlen vs g_utf8_strlen problem somewhere or something like that, but I don't know exactly ------- Bug moved to this database by unknown@bugzilla.gnome.org 2004-07-21 17:53 ------- Unknown platform unknown. Setting to default platform "Other". Unknown milestone "unknown" in product "nautilus". Setting to default milestone for this product, '---' Setting to default status "UNCONFIRMED". Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
Looks like someone "overunicoded" my report :) Here's it: ---- 1. Create a folder named "Картинки" or "Скачивание" in UTF-8 2. Try to autocomplete it with Ctrl+L Actual Results: If I'll try to type say "Картинки", Nautilus will show only Карти" after typing "К" (there's no other folder that even starts with "К" here) ----
Thanks for your bug report! Do you still see this behavior with Nautilus 2.10?
same with nautilus 2.10
Created attachment 71314 [details] [review] Fix autocompletion This patch fixes it for me, the problem was gtk_editable_insert_text() wants the length in bytes[1] and it was given in characters via g_utf8_strlen(). [1] http://developer.gnome.org/doc/API/2.0/gtk/GtkEditable.html#gtk-editable-insert-text
Ups! looking at online sources this was fixed 7 months ago in dup bug 324406 , I should get a newer nautilus, sorry for the incovenience...