After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 273512 - typing characters isn't moving the cursor (characters are reverse / backwards)
typing characters isn't moving the cursor (characters are reverse / backwards)
Status: RESOLVED WONTFIX
Product: GtkHtml
Classification: Other
Component: Editing
4.2.x
Other All
: Normal major
: ---
Assigned To: gtkhtml-maintainers
gtkhtml-maintainers
gnome[unmaintained]
: 244200 266491 273408 274466 321162 328774 329901 343368 (view as bug list)
Depends on:
Blocks: 327508
 
 
Reported: 2005-03-09 16:19 UTC by Philip Van Hoof
Modified: 2017-02-09 13:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Message which triggers English RTL bug when replying or forwarding (182.88 KB, message/rfc822)
2005-10-07 12:05 UTC, Dave Hall
Details
Email I received that causes this bug when attempting to add text while forwarding (48.94 KB, text/plain)
2006-01-30 16:43 UTC, George Reeke
Details
This is another message that triggers this bug - same source crikey.com (93.60 KB, message/rfc822)
2006-05-30 08:41 UTC, Dave Hall
Details
Message triggering problem in my inbox. (5.78 KB, text/plain)
2006-06-01 06:47 UTC, Carl Gherardi
Details

Description Philip Van Hoof 2005-03-09 16:19:45 UTC
Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:


Steps to reproduce the problem:
1. To to the end of the document you've just typed
2. Put the cursor at the middle of a string (at the top if the document)
3. start typing

Actual Results:
The cursor doesn't move but characters are being added (in the wrong direction)

Expected Results:
The cursor should move while characters are being added

How often does this happen? 
Not always .. 

Additional Information:
I'm using everything from CVS HEAD
Comment 1 André Klapper 2005-03-09 20:27:10 UTC
i can reproduce this both when replying and writing a new message with 
a special content (can also be copied and pasted into).

write an email long enough (e.g. by copying content to the composer 
window) to be able to use page up + page down to get exactly *into* 
the signature when the cursor is in the first line. (or have a big 
signature and a short mail ;-)
since plain html email style is automatically set to "normal", there 
will be a line break at 72chars (or whatever, doesnt matter). testing 
has shown that the bug does not seem to happen when the email has no 
line break and only includes short sentences with less then those 
72chars, so there MUST be at least one line break by evolution.
being at the end but above the signature of the email i write, i now 
use the page up button to get to the beginning of the email. type 
something, it's still LTR as expected.
now hit page down again to set the cursor *into* (neither "after" nor 
"to the right of") the signature and page up again to the first line. 
now it's wrong and RTL.

now this is 100% reproducable to me here.

suse 9.2, evolution-2.1.6.0.200503080410-0.snap.ximian.10.1, gtkhtml2-
3.5.7.0.200503080410-0.snap.ximian.10.1.
Comment 2 André Klapper 2005-03-09 20:27:57 UTC
yay, adding me to the cc list
Comment 3 André Klapper 2005-03-09 20:36:00 UTC
*** bug 273408 has been marked as a duplicate of this bug. ***
Comment 4 Philip Van Hoof 2005-03-10 09:51:10 UTC
I'm happy you've found a way to reproduce this. It will make it a lot
more easy to catch it :-).
Comment 5 Radek Doulik 2005-03-15 11:06:11 UTC
I am unable to reproduce it here, please could you try to reproduce it
with gtkhtml 3.6.1?
Comment 6 Philip Van Hoof 2005-03-15 11:21:38 UTC
I haven't reproduced this bug for more then a week now (I upgrade from
CVS very frequently, more then once a day). So it's possible this has
magically been fixed :p.

However. If it happens I'll post it here and I'll try to memory what
exactly I did to make it happen.

Just as Adre Klapper explains in his comment, I've only had this with
longer E-mails. In which I wrote longer lines of text that are being
wrapped by the composer (not by me).
Comment 7 André Klapper 2005-03-17 17:41:06 UTC
refering to my comment, it now seems that if i am in the first line of 
my email and hit "page down" the cursor goes to the end of the 
signature text box and not right directly into the signature, so i 
also am not able to reproduce this. hmm. probably the problem hasn't 
been solved, but now it seems evolution's behaviour prevents me 
running into that bug. :-/
Comment 8 André Klapper 2005-05-12 12:45:13 UTC
*** Bug 274466 has been marked as a duplicate of this bug. ***
Comment 9 André Klapper 2005-09-26 19:47:56 UTC
*** Bug 266491 has been marked as a duplicate of this bug. ***
Comment 10 Dave Hall 2005-10-07 12:03:46 UTC
I have this problem too on multiple installs of ubuntu breezy (1 not updated for
a about a month, another updated daily) 

Main install environment (updated daily):

dave@woby:~$ dpkg -l | grep evolution | grep ii
ii  evolution                         2.4.1-0ubuntu4                       The
groupware suite
ii  evolution-data-server             1.4.1-0ubuntu1                      
evolution database backend server
ii  evolution-exchange                2.4.0-0ubuntu1                      
Exchange plugin for the Evolution groupware
ii  evolution-plugins                 2.4.1-0ubuntu4                       All
bundled plugins for Evolution 2.2
ii  evolution-webcal                  2.4.1-0ubuntu1                      
webcal: URL handler for GNOME and Evolution
ii  libcamel1.2-6                     1.4.1-0ubuntu1                      
Generic messaging library for evolution data
ii  libebook1.2-5                     1.4.1-0ubuntu1                      
Client library for evolution address books
ii  libecal1.2-2                      1.2.1-0ubuntu1                      
Client library for evolution calendars
ii  libecal1.2-3                      1.4.1-0ubuntu1                      
Client library for evolution calendars
ii  libedata-book1.2-2                1.4.1-0ubuntu1                      
Backend library for evolution address books
ii  libedata-cal1.2-1                 1.4.1-0ubuntu1                      
Backend library for evolution calendars
ii  libedataserver1.2-4               1.4.1-0ubuntu1                      
Utility library for evolution data servers
ii  libedataserverui1.2-6             1.4.1-0ubuntu1                      
Utility library for evolution data servers
ii  libevolution-cil                  0.10.1-0ubuntu6                      CLI
bindings for Evolution
ii  libexchange-storage1.2-0          1.4.1-0ubuntu1                      
Backend library for evolution calendars
ii  openoffice.org2-evolution         1.9.129-0.1ubuntu3                  
Evolution Addressbook support for OpenOffice

dave@woby:~$ dpkg -l | grep gtkhtml | grep ii
ii  gtkhtml3.6                        3.6.2-1                              HTML
rendering/editing library - bonobo comp
ii  gtkhtml3.8                        3.8.1-0ubuntu1                       HTML
rendering/editing library - bonobo comp
ii  libgtkhtml1.1-3                   1.1.10-4ubuntu1                      HTML
rendering/editing library - runtime fil
ii  libgtkhtml2-0                     2.6.3-1                              HTML
rendering/editing library - runtime fil
ii  libgtkhtml20                      1.0.4-6.2                            HTML
rendering/editing library - runtime fil
ii  libgtkhtml3.6-18                  3.6.2-1                              HTML
rendering/editing library - runtime fil
ii  libgtkhtml3.8-15                  3.8.1-0ubuntu1                       HTML
rendering/editing library - runtime fil

Will attach a raw message causes this problem when trying to reply to or forward it.

Comment 11 Dave Hall 2005-10-07 12:05:59 UTC
Created attachment 53180 [details]
Message which triggers English RTL bug when replying or forwarding
Comment 12 Dave Hall 2005-10-07 12:06:29 UTC
Whoops the output above didn't like being wrapped, sorry
Comment 13 André Klapper 2005-10-07 12:43:21 UTC
hi dave, thanks for your test message, that's awesome.

i can reproduce this here with evo-2.4.x on suse9.3, reopening this bug report.
Comment 14 André Klapper 2005-10-07 12:50:07 UTC
note: to import the test message ftom comment #11 to evolution, one has to add a
line in front of it like "From example@example.com Tue Sep 20 19:49:17 2005" to
get a berkeley mailbox file.
Comment 15 André Klapper 2005-11-12 11:28:56 UTC
copying comments of dup bug 321162:

"the person who sent the email is using *Exchange* but the bug happens in
Evolution connecting to a Linux IMAP server."

another example message: http://bugzilla.gnome.org/attachment.cgi?id=54581
Comment 16 André Klapper 2005-11-12 11:29:25 UTC
*** Bug 321162 has been marked as a duplicate of this bug. ***
Comment 17 Sebastien Bacher 2005-12-04 21:26:20 UTC
This is still happening with gtkhtml 3.9.2, Ubuntu bug about this (with an
example): 
http://bugzilla.ubuntu.com/show_bug.cgi?id=19579
Comment 18 André Klapper 2005-12-21 14:39:48 UTC
raising priority. hmm. i need a 2.4 milestone. :-)
Comment 19 André Klapper 2006-01-10 01:30:54 UTC
yeah, really seems to only happen when replying.


i'm marking bug 244200 as a duplicate of this one here.
both bugs have many comments, so i'm unsure, but this one here is newer. please also take a look at the comments at bug 244200, thanks.
Comment 20 André Klapper 2006-01-10 01:31:01 UTC
*** Bug 244200 has been marked as a duplicate of this bug. ***
Comment 21 André Klapper 2006-01-12 11:30:46 UTC
targetting from 2.5.x to 2.4.x with the new, fresh and greasy(TM) 2.4.x target milestone provided by harish. ;-)
Comment 22 André Klapper 2006-01-16 14:15:29 UTC
strange, strange. just had that again. i then copied a word to the position where my right-to-left cursor was and after that, i could continue to type normally from left to right. removing that line again led to rtl-mode again.
time to find out how to reproduce this perfectly.
Comment 23 Karsten Bräckelmann 2006-01-27 01:10:20 UTC
*** Bug 328774 has been marked as a duplicate of this bug. ***
Comment 24 George Reeke 2006-01-30 16:43:50 UTC
Created attachment 58406 [details]
Email I received that causes this bug when attempting to add text while forwarding

I saw the report of this problem on the evolution list today and had also
experienced the same bug myself.  The attachment is the email that caused
this bug when attempting to add a note at the top when forwarding it to
a third party.
(But I still have Evolution 2.0.2 as distributed with RedHat EL AS 4)
Comment 25 Veerapuram Varadhan 2006-01-31 11:56:29 UTC
Adding this to the 2.5 tracker bug.
Comment 26 André Klapper 2006-02-04 17:06:34 UTC
*** Bug 329901 has been marked as a duplicate of this bug. ***
Comment 27 André Klapper 2006-02-20 00:04:29 UTC
when replying to the message attached at comment 11 in plain text mode, the cursor jumps directly to somewhere in the middle of the message. by only using the keyboard i did not succeed in getting the cursor back at the beginnning of the message, but perhaps i was just too stupid. at least page+up did not work. so i used the mouse.
i'm getting
    html_cursor_jump_to_position: assertion `position >= 0' failed
five times on the shell now when typing *one* character in the wrong direction.

so go to
    gtkhtml/src/htmlcursor.c, void html_cursor_jump_to_position (HTMLCursor
   *cursor, HTMLEngine *engine, gint position)
and check out how "position" goes mad before finally getting a value of 0.
(i added one line
     g_print("debukq: position: %d\n", position);
ad the beginning of that function, don't if it's right because i have no knowledge of c at all)

when doing this for a second time, cursor jumps to exactly the same strange position somewhere in the middle of the text.

evo2.5.91cvs checkout 8hrs ago.
Comment 28 Kjartan Maraas 2006-05-02 09:02:49 UTC
Possible duplicate with a good backtrace in bug 340384
Comment 29 André Klapper 2006-05-19 00:05:59 UTC
removing old target milestones
Comment 30 André Klapper 2006-05-30 08:32:37 UTC
*** Bug 343368 has been marked as a duplicate of this bug. ***
Comment 31 André Klapper 2006-05-30 08:32:46 UTC
one can find another example email at bug 343368.
Comment 32 Dave Hall 2006-05-30 08:41:32 UTC
Created attachment 66459 [details]
This is another message that triggers this bug - same source crikey.com

Still happening here.  User hassled me about it again today :(

Version information:
dpkg -l | grep gtkhtml
ii  gtkhtml3.6                             3.6.2-1                               HTML rendering/editing library - bonobo comp
ii  gtkhtml3.8                             3.10.1-0ubuntu3                       HTML rendering/editing library - bonobo comp
ii  libgtkhtml1.1-3                        1.1.10-9                              HTML rendering/editing library - runtime fil
ii  libgtkhtml2-0                          2.11.0-1                              HTML rendering/editing library - runtime fil
rc  libgtkhtml20                           1.0.4-6.2                             HTML rendering/editing library - runtime fil
ii  libgtkhtml3.6-18                       3.6.2-1                               HTML rendering/editing library - runtime fil
ii  libgtkhtml3.8-15                       3.10.1-0ubuntu3                       HTML rendering/editing library - runtime fil

I know this will wrap poorly - sorry
Comment 33 Dave Hall 2006-05-30 08:43:35 UTC
Forgot the evo version - 2.6.1-0ubuntu7
Comment 34 Carl Gherardi 2006-06-01 06:45:22 UTC
Add a me too on this one.

[carlos@localhost ~]$ rpm -qa | grep evolution
evolution-webcal-2.4.1-3.2
evolution-2.6.1-1.fc5.2
evolution-data-server-1.6.1-1.fc5.2
evolution-data-server-devel-1.6.1-1.fc5.2
evolution-sharp-0.10.2-9

[carlos@localhost ~]$ rpm -qa | grep gtkhtml
gtkhtml2-2.6.3-1.2.1
gnome-python2-gtkhtml2-2.14.0-1
gtkhtml3-3.10.1-1.fc5.1

Using IMAP to connect to an exchange 2003 server. The original message I believe was sent as rtf encoded, with cut'n'paste html inserted from a web site.

Attachmet to follow.

Comment 35 Carl Gherardi 2006-06-01 06:47:07 UTC
Created attachment 66577 [details]
Message triggering problem in my inbox.

As promised
Comment 36 André Klapper 2007-11-18 01:17:06 UTC
according to a user on irc, this still happens with evolution 2.12.1 from gentoo ebuild
Comment 37 André Klapper 2007-11-18 01:18:37 UTC
andre> is that email confidential, or can you attach it to the bug report?
<andre> (after removing the real addresses in it)
<raz> it unfortunately is a mail to my boss but maybe it helps to note that it happened immediately after i pasted a link into the mail. actually i only pasted the link TEXT, copied from firefox but evolution still insisted on making it blue underlined.
<raz> but i cannot prove that it is actually connected because i haven't tried typing at the top of the mail before...
Comment 38 André Klapper 2012-12-21 21:21:15 UTC
Just happened to me with 3.2.3. Of course not reproducible.
Comment 39 André Klapper 2017-02-09 13:38:11 UTC
GtkHtml is not under active development anymore. 
Evolution (its main consumer) switched to a WebKit backend a while ago. 
It is currently unlikely that there will be any further GtkHtml development.

Closing this report as WONTFIX as part of Bugzilla Housekeeping (bug 778387) to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.