GNOME Bugzilla – Bug 85595
Copy/Cut/Paste for text doesn't work
Last modified: 2004-12-22 21:47:04 UTC
Well, when I select some text on other application, and then I did 'Paste Text'. it doesn't work for Japanese. perhaps it may not works except for iso8859-1. part of Japanese characters was changed another characters like ~ . I presume this is caused since we shift to UTF-8 internally. and it's broken by gtk_selection_*() because handling the encoding is different between gtk+ and dia. Also, 'Cut Text' is always disabled. I can't do that. 'Copy Text' doesn't also work because maybe I can't do the selection on the text object.
I can look at the cut/copy problem. Pasting Japanese text will be more ... interesting.
*** Bug 89493 has been marked as a duplicate of this bug. ***
*** Bug 71847 has been marked as a duplicate of this bug. ***
I could confirm this using dia 0.90 on windows and using dia CVS on Linux: * Create a text object * edit the text * try to paste
Some problems with copying/cutting ASCII text fixed. Can't remove text in cut. For the non-ASCII stuff, I'm not sure who's at fault.
I've fixed the problems with Cut in CVS. For the Japanese
pasting, just like Japanese input, we need to figure out how to
transform the input to UTF-8.

Cut and paste should now work with Japanese. We now use gtk_clipboard, which does encodings for us. It should work both with the locale encoding and UTF-8. Note that not all programs copy text in the way you may expect.