After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 148130 - autocompletion (ctrl+l, location bar) works bad with UTF-8 folder names
autocompletion (ctrl+l, location bar) works bad with UTF-8 folder names
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
2.10.x
Other other
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-21 21:53 UTC by Dan Korostelev
Modified: 2006-08-25 07:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Fix autocompletion (638 bytes, patch)
2006-08-21 16:11 UTC, Nelson Benitez
none Details | Review

Description Dan Korostelev 2004-07-21 21:53:23 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.

Comment 1 Dan Korostelev 2004-07-21 22:00:39 UTC
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)
----
Comment 2 Christian Neumair 2005-05-11 16:31:30 UTC
Thanks for your bug report! Do you still see this behavior with Nautilus 2.10?
Comment 3 Sebastien Bacher 2005-05-14 22:28:34 UTC
same with nautilus 2.10
Comment 4 Nelson Benitez 2006-08-21 16:11:46 UTC
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
Comment 5 Nelson Benitez 2006-08-21 16:24:58 UTC
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...