From: Masao Mutoh Date: 2004-03-05T03:37:46+09:00 Subject: Re: [Ruby-gnome2][Bug] segmentation fault with ComboBox and spanish characters --Multipart=_Fri__5_Mar_2004_03_37_14_+0900_Lk4NEqDcNTuuY0oz Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, On Thu, 4 Mar 2004 17:20:58 +0900 David Espada wrote: > >> > All strings you pass to GTK+ functions must be in UTF-8. > >> > >> Problem seems only to raise when I try using autocomplete with > >> Alt+Tab > > > > Autocomplete ? Is it Gtk::Combo? > > Yes :) > > > Hmm. I don't know Gtk::Combo has autocomplete feature. > > Is it about other Widget? > > Try yourself with a number of assigned values (set_popdown_strings) > and Alt+Tab ;) > > > Could you send a sample(small one, please;->)? > > Well. In this example, you can select perfectly a value in combo with > mouse, but if you type until a special spanish character and next use > Alt+Tab combination in order to auto-complete word, widget run > unstable and it is difficult to select a value until you type > backspace repeatedly. GTK+ C version gets same result. It seems a bug of GTK+. Try attached file. gcc -o test `pkg-config gtk+-2.0 --libs --cflags` test.c -- .:% Masao Mutoh --Multipart=_Fri__5_Mar_2004_03_37_14_+0900_Lk4NEqDcNTuuY0oz Content-Type: application/octet-stream; name="test.c" Content-Disposition: attachment; filename="test.c" Content-Transfer-Encoding: base64 I2luY2x1ZGUgPGd0ay9ndGsuaD4KI2luY2x1ZGUgPGxvY2FsZS5oPgoKaW50IG1haW4oaW50IGFy Z2MsIGNoYXIqKiBhcmd2KXsgIAogIEd0a1dpZGdldCAqd2luZG93LCAqY29tYm87CiAgR0xpc3Qq IGdsaXN0ID0gTlVMTDsKCiAgc2V0bG9jYWxlKExDX0FMTCwgIiIpOwogIGdsaXN0ID0gZ19saXN0 X2FwcGVuZChnbGlzdCwgIsOhcmJvbCIpOwogIGdsaXN0ID0gZ19saXN0X2FwcGVuZChnbGlzdCwg InBlbMOtY3VsYSIpOwogIGdsaXN0ID0gZ19saXN0X2FwcGVuZChnbGlzdCwgImVkcmVkw7NuIik7 CgogIGd0a19pbml0KCZhcmdjLCAmYXJndik7CgogIGNvbWJvID0gZ3RrX2NvbWJvX25ldygpOwoK ICBndGtfY29tYm9fc2V0X3BvcGRvd25fc3RyaW5ncyhHVEtfQ09NQk8oY29tYm8pLCBnbGlzdCk7 CgogIHdpbmRvdyA9IGd0a193aW5kb3dfbmV3KEdUS19XSU5ET1dfVE9QTEVWRUwpOwogIGd0a19j b250YWluZXJfYWRkKEdUS19DT05UQUlORVIgKHdpbmRvdyksIEdUS19XSURHRVQoY29tYm8pKTsK ICBndGtfd2lkZ2V0X3Nob3dfYWxsKHdpbmRvdyk7CgogIGd0a19tYWluKCk7CiAgcmV0dXJuIDA7 Cn0KCg== --Multipart=_Fri__5_Mar_2004_03_37_14_+0900_Lk4NEqDcNTuuY0oz--