Bug 127823 - Error when highlighting an apostrophe character
Summary: Error when highlighting an apostrophe character
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-22 15:58 UTC by Torquil Macdonald Sørensen
Modified: 2007-02-10 03:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torquil Macdonald Sørensen 2006-05-22 15:58:02 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

Hallo,

This error occurs with konsole when trying to highlight a certain text containing the characters ‘ and ’ . When highlighting from the left with the left mouse button, the error occurs just as the above characters also become highlighted. The result when the whole line is highlighted is that all the text after the ‘ character has moved almost one character width towards the right, and the character after the ‘ has become duplicated.

The ‘ and ’ characters are the ones outputted by cpp at compilation errors, e.g.
2.cpp:98: error: invalid initialization of non-const reference of type ‘int&’ from ....

I use LANG and LC_CTYPE=en_GB.utf8

Best regards,
TMS
Comment 1 Kurt Hindenburg 2006-06-10 17:55:29 UTC
I can't reproduce... maybe a screen shot or a little movie?
Comment 2 Torquil Macdonald Sørensen 2006-07-18 14:10:05 UTC
Hello

Ok, here is a specific example with a screenshot:

1) To generate an error message try to compile the following file (1.cpp) by running the command 'make 1':
--------------------
#include <iostream>
using namespace std;
int main() {
        1+
}
--------------------

2) The error message I get is:
--------------------
1.cpp: In function ‘int main()’:
1.cpp:5: error: expected primary-expression before ‘}’ token
1.cpp:5: error: expected `;' before ‘}’ token
make: *** [1] Error 1

3) But, when I try to highlight the first line from the left, I get the following when I reach the apostrophe preceeding "int main()":
http://folk.uio.no/tmac/konsole_bug_1.png
http://folk.uio.no/tmac/konsole_bug_2.png
http://folk.uio.no/tmac/konsole_bug_3.png

The error occurs when the highlighting reaches the character immediately preceeding the first apostrophe. As seen in the first screenshot, the 'i' in 'int' is destroyed.

Best regards,
TMS
Comment 3 Kurt Hindenburg 2006-07-21 20:46:06 UTC
Still can't reproduce.  I tried using your LANG also.  Works here...

1.cpp: In function `int main()':
1.cpp:5: error: expected primary-expression before '}' token
1.cpp:5: error: expected `;' before '}' token
make: *** [1] Error 1

What char is before your int?  Mine looks like backtick `, while your's looks different.
Comment 4 Robert Knight 2006-08-07 18:58:18 UTC
Hello,

I am not able to reproduce the problem either.  What font and font-size are you using?
Comment 5 Torquil Macdonald Sørensen 2006-08-07 19:39:20 UTC
Hello,

Thanks for the suggestion, Robert. I am using the font Monospace, Regular, 9. When I changed to Bitstream Vera Sans Mono, Regular, 9 the problem went away :-) It also worked with Courier 10 Pitch, Regular, 9.

And sorry Kurt for not answering, I wasn't CC'ed when you commented...

Best regards,
TMS
Comment 6 Robert Knight 2007-02-10 03:52:53 UTC
Seems to be a font-related issue.  Marking as resolved for now.