Bug 463177 - Selected text gets deleted in KDE if Input Method (SCIM) is enabled[Patch provided]
Summary: Selected text gets deleted in KDE if Input Method (SCIM) is enabled[Patch pro...
Status: RESOLVED FIXED
: 513025 586192 (view as bug list)
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: KDE4 Workspace (show other bugs)
Version: Factory
Hardware: i586 Other
: P4 - Low : Major with 10 votes (vote)
Target Milestone: ---
Assignee: Ming Xi Wu
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-01 12:08 UTC by Hu Jiaqi
Modified: 2011-05-21 17:23 UTC (History)
7 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
patch for scim-bridge (954 bytes, patch)
2009-01-01 12:11 UTC, Hu Jiaqi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hu Jiaqi 2009-01-01 12:08:55 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
Comment 1 Hu Jiaqi 2009-01-01 12:11:26 UTC
Created attachment 262943 [details]
patch for scim-bridge
Comment 3 Torben Mikael Hansen 2009-04-08 13:49:45 UTC
Any good reason why this patch is included in a online update?

The very same fix was included in Fedora September 2008
Comment 4 Torben Mikael Hansen 2009-04-08 13:52:16 UTC
...is _not_ included in an online update?
Comment 5 Bob Peterson 2009-05-18 06:32:29 UTC
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?
Comment 6 Andrey S 2009-07-14 08:39:46 UTC
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.
Comment 7 Bob Peterson 2009-07-15 01:31:55 UTC
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
Comment 8 Torben Mikael Hansen 2009-11-02 12:49:20 UTC
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.
Comment 9 Andrey S 2009-12-15 21:46:48 UTC
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.
Comment 10 Bob Peterson 2009-12-18 16:45:24 UTC
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! :)
Comment 11 Torben Mikael Hansen 2010-01-11 10:24:25 UTC
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
Comment 12 Andrey S 2010-01-11 12:30:39 UTC
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...
Comment 13 Bob Peterson 2010-01-13 02:40:47 UTC
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.
Comment 14 Bin Li 2010-01-18 09:21:21 UTC
Forward to MingXi.
Comment 15 Ming Xi Wu 2010-02-04 06:40:39 UTC
*** Bug 513025 has been marked as a duplicate of this bug. ***
Comment 16 Ming Xi Wu 2010-02-04 07:25:50 UTC
Done in M17N repo.

Will be submitted to Factory later.
Comment 17 Christian Trippe 2011-05-21 17:23:26 UTC
*** Bug 586192 has been marked as a duplicate of this bug. ***