giorgifafa / editra

Automatically exported from code.google.com/p/editra
0 stars 0 forks source link

Base64 encoded strings pasted into the Editor does not display correctly / distorted garbled text #821

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Base64 encode a file, I used a small file on Ubunut (whoami) as a proof of 
concept
2. In a python file opened in Editra editor create a line entry with a python 
variable and assign it double quotes <paste the base64 encoded whoami string> 
and end with double quotes.
3. Nothing further, the display distorts and goes garbled.

What is the expected output? What do you see instead?
I expect to see the Bas64 characters displayed in the main Editra window. 
Instead I get garbled fonts overwriting?? each other on the screen. Possibly 
long string of text on one line issue with Editra.

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?
Ubuntu 14.04 LTS 64bit, Editra 0.7.20 from the Ubuntu Repositories.

What method of install was your version installed with (Binary/Source)?
apt-get from the ubuntu repository

If from source: What version of python and wxPython are you using?
n/a

Please provide any additional information below.

IF I open the python file in nano, vi, or other editors it displays properly. 
If I open it in Editra it displays garbled text all over the code window 
display.

Original issue reported on code.google.com by peterdil...@gmail.com on 7 Jun 2014 at 7:35

Attachments:

GoogleCodeExporter commented 9 years ago
Do you have a sample file to reproduce the issue with?

Original comment by CodyPrec...@gmail.com on 15 Oct 2014 at 1:38

GoogleCodeExporter commented 9 years ago
Sorry I have left the files with the client and have since changed laptops with 
a newer operating system with a completely different desktop interface stack. 
(Was Ubuntu 14.04 LTS/Unity, now Ubuntu 14.10/Gnome3).

I did however install Editra from the Ubuntu repositories today and did some 
more testing to try and replicate the issue and I succeeded using the following 
method:

1. Base64 encode a file into a base64 string.
2. Paste that string into Editra (it looked fine)
3. Just for giggles prepended the string with "variablename = "
4. Saved the file as a text file just in case the python parser in Editra had 
any link to the bug.
5. I scrolled using the scrollbars and found it only part way scrolled to the 
right along the long base64 string before the widgets for the scrollbar decided 
to tell me it reached the end of the string (a new error/bug?)
6. By selecting the text string with my mouse and holding down the mouse button 
I could scroll through the string to the right and force Editra to scroll 
further along the string.
7. Before it reached the end the graphics on screen for the string exhibited 
the same graphics corruption.
8. I scrolled using the scrollbar widget to the left and the string reappears 
and the garbled graphics disappears.
9. I scroll back to the right and the garbled graphics reappears at the same 
spot in the string.
10. Just for giggles I scroll back leftwards until the string reappears and put 
the mouse curse at the end and hold the selection button down and select back 
to the beginning of the string in editra and copy it into the copy buffer.
11. Using the shell plug-in I do a quick len() function call on it to see 
approximated how far down the string editra can scroll on Ubuntu 14.10/Gnome3 
before the graphic corruption appears.

Screenshots were taken at work but I forgot to copy them to a USB data stick 
before coming home.  I can reattach them at a later date if the above text 
description is not sufficient to replicate the observed behavior.

Original comment by peterdil...@gmail.com on 16 Oct 2014 at 11:29