Bug 104867 - GPM fails to insert non-ASCII characters properly
Summary: GPM fails to insert non-ASCII characters properly
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Beta 1
Hardware: i686 SUSE Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Jiri Bohac
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-16 07:02 UTC by Ulrich Windl
Modified: 2008-01-08 10:23 UTC (History)
2 users (show)

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


Attachments
patch to allow copy and paste of latin1 (2.91 KB, patch)
2005-08-23 10:22 UTC, Michal Marek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Windl 2005-08-16 07:02:34 UTC
When trying to copy & paste non-ASCII characters with GPM on the Linux console
(framebuffer) into Bash, those characters do not appear (e.g "möglich" will
appear as "mglich"). Furthermore Bash gets confused: when trying to insert an
ASCII character after the 'm', some "magic" character appears, and when moving
the cursor along the word, characters appear and disappear, and Bash's readline
gets out of sync regarding display and internal character position.
GPM should be able to paster non_ACSII characters as well.
Comment 1 Petr Mladek 2005-08-18 11:23:48 UTC
I'll look at it.
Comment 2 Michal Marek 2005-08-22 11:47:25 UTC
I'll try to debug this today...
Comment 3 Michal Marek 2005-08-23 10:22:40 UTC
Created attachment 47148 [details]
patch to allow  copy and paste of latin1

1. The actual copy-and-paste is done by the kernel, so this is not a GPM
bug.

2. Unfortunatelly, it's IMHO impossible to reconstruct the UTF-8 text
when copying from the console -- this patch just enables it for Latin1
(Umlauts for instance) and replaces other characters with a question
mark to avoid the "magic" character from appearing. I'm not sure whether
this doesn't break other languages, where it might have worked before --
someone would have to check, I'm not a kernel hacker.
Comment 4 Petr Mladek 2005-08-26 10:37:06 UTC
It should be fixed in kernel -> reassign to the kernel developers.
Comment 5 Vojtech Pavlik 2005-08-31 15:37:36 UTC
Ok, I'll take a look at what we can do with this. Jiri, would you be willing
to take a look into the console code again?
Comment 6 Jiri Bohac 2005-09-01 11:11:36 UTC
I think it is actually possible to reverse-map the unicode->glyph mapping; the
inverse_translations table just needs to be initialized accordingly.

I'll have a look at it next week.
Comment 7 Vojtech Pavlik 2005-11-14 12:27:22 UTC
Any progress? ;)
Comment 8 Jiri Bohac 2006-02-28 19:21:47 UTC
Submited a patch to the kernel CVS, should be in the next beta.
Comment 9 Jiri Bohac 2006-03-14 19:02:44 UTC
fixed in 10.1 beta 7
Comment 10 Ales Nosek 2007-02-06 10:48:56 UTC
In openSUSE 10.2:
I tried to copy & paste some german umlauts (ä, ö) with GPM in Linux console. These characters didn't copy.
Comment 11 Jiri Bohac 2008-01-02 15:10:37 UTC
Ales, does this still happen on 11.0? I can't reproduce it.
Comment 12 Ales Nosek 2008-01-04 12:12:00 UTC
It works in 11Alpha0 :-)
Comment 13 Jiri Bohac 2008-01-08 10:23:10 UTC
Thanks, closing as FIXED