Bugzilla – Bug 463177
Selected text gets deleted in KDE if Input Method (SCIM) is enabled[Patch provided]
Last modified: 2011-05-21 17:23:26 UTC
In any KDE4 apps, selected text in input area get deleted if I change focus to another window and back. Steps to reproduce: 1.Enable SCIM and ensure QT_IM_MODULE is set to "scim-bridge". 2.Launch Kwrite and type something. 3.Select the text. 4.Switch focus to another window. 5.Switch back. 6.The selected text is deleted. Here is the same issue in fedora: https://bugzilla.redhat.com/show_bug.cgi?id=464397 https://bugzilla.redhat.com/show_bug.cgi?id=461373 It's a bug of scim-bridge and patch is attached (thanks to Alexander Gavrilov) This is very annoying and please send fix to online update if possible. $rpm -qa | grep scim-bridge scim-bridge-gtk-0.4.15-6.1 scim-bridge-0.4.15-6.1 scim-bridge-qt-0.4.15-6.1
Created attachment 262943 [details] patch for scim-bridge
I've built and test scim-bridge with the patch. It works perfectly. http://download.opensuse.org/repositories/home:/hujq/openSUSE_11.1/x86_64/scim-bridge-0.4.15-13.2.i586.rpm http://download.opensuse.org/repositories/home:/hujq/openSUSE_11.1/x86_64/scim-bridge-gtk-0.4.15-13.2.i586.rpm http://download.opensuse.org/repositories/home:/hujq/openSUSE_11.1/x86_64/scim-bridge-qt-0.4.15-13.2.i586.rpm
Any good reason why this patch is included in a online update? The very same fix was included in Fedora September 2008
...is _not_ included in an online update?
I second including the fix in the regular openSUSE distribution! I had the same problem, i.e. that my file names were deleted whenever I wanted to rename files in KDE applications, and the fix works for me. Is the inclusion being taking care of?
Official patch would be very nice, though home:/hujq packages fix bug and everything work fine with both scim-bridge and default 'XIM' Input Method. By the way, exatcly the same bug is present in gcin: selected text gets deleted while Input Method is set to gcin. Sadly, I don't (yet) understand Chinese, so I can't find where their bug reporting system is. If some Chinese speaker is reading this, please report this bug to gcin developers, or just point me to the place, where I can report gcin bugs.
I'm not sure where to find the bug tracker. The link under the freshmeat entry (http://freshmeat.net/projects/gcin) directs to this site: http://cle.linux.org.tw/trac/wiki/EnWikiStart. You've probably already looked at it. I would try posting on their forum (http://hyperrate.com/dir.php?eid=67), perhaps that helps. Cheers, homoludens
It seems that the same version of scim-bridge is included in openSuSE 11.2. Has the patch been applied. Sorry, I haven't had time to test it myself.
Still not fixed in default openSUSE 11.2 installation (with all updates). To get rid of the bug I used Hu Jiaqi's repository for openSUSE 11.1 (openSUSE 11.2 version of the repository does not have patched scim packages). With that packages bug is fixed.
Andrey, thanks for the post. It's very disappointing to hear that the fix hasn't been included in openSUSE 11.2 (would it be that difficult?!), but it's good to know that the old patch still works well. Thanks also to Jiaqi for providing the original patch, you're my hero! :)
It is in fact very easy to apply the path. After learning about the build server it took 10 min. to include the original patch. openSUSE 11.1 and openSUSE 11.2 are build with different versions of gcc so it may not be a good idea to just use the 11.1 package. You can download updated packages from: http://download.opensuse.org/repositories/home:/torhans/openSUSE_11.2
Just tested packages from: http://download.opensuse.org/repositories/home:/torhans/openSUSE_11.2 Everything works as good as with Hu Jiaqi's packages. However, I still think that the official patch is still needed. It has been a year since bug was filed. I hope patch will be included at least in openSUSE 11.3...
Torben, thanks for the update! I installed openSuse 11.2 yesterday and first tried Jiaqi's patch from his 11.1 repository, but that didn't fix the problem. Your patch, however, does, so I'd recommend that openSuse 11.2 users stick to this one. Cheers! PS: I remember reading some post that mentioned that pressing ctrl-z restores the deleted text, perhaps useful in case a user decides to not apply the patch.
Forward to MingXi.
*** Bug 513025 has been marked as a duplicate of this bug. ***
Done in M17N repo. Will be submitted to Factory later.
*** Bug 586192 has been marked as a duplicate of this bug. ***