bugGNU Octave - Bugs: bug #52145, Copy and paste results in strange...

 
 

bug #52145: Copy and paste results in strange output

Submitted by:  Devin G. Bost <devinbost>
Submitted on:  Fri 29 Sep 2017 08:41:12 PM UTC  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: NoneAssigned to: None
Originator Name: Devin BostOpen/Closed: Open
Release: 4.2.1Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 07 Oct 2017 06:18:21 AM UTC, comment #5:

Average Training CE 2.712
Finished Training.
Final Training CE 2.712

Average Training
For reference, I've imported into a hex editor and I'll replace the characters with hex format bytes:

The prepended characters are

The 80 hex shows up a lot and looks to be a qualifier to place some sort of apostrophe on the following character. 80 is the first character in the extended ASCII character set, i.e., the highest ASCII character is 7F.

Could you experiment a bit with how exactly the text is selected. For example, I'm wondering if selecting with the mouse from the left edge is capturing some characteristic about the window. For example, rather than selecting "Average Training...", try selecting "erage Training..." and pasting a few times to see if the extra characters show up when selecting something in the middle of a line. (No need to attach results, rather simple give an assessment if anything is different in that case.)

You could also try detaching the Command Line window from the app desktop and then repeat your original example. To detach, click the little windows icon next to the 'x' of the editor tab Command Window.

I would think the fact that sometimes there are no extra character pre-pended is an indication of copy-time rather than paste-time issues.

Dan Sebald <sebald>
Sat 07 Oct 2017 04:08:56 AM UTC, comment #4:

Sorry, I didn't check on this for a while, but when I checked on it, I realized that the files I previously attached to email and submitted with my post about the problem didn't auto-upload to the bug in Savannah like I was expecting. So, I uploaded the pictures to Savannah directly, and it appears that it worked this time.

Devin G. Bost <devinbost>
Fri 06 Oct 2017 02:39:09 PM UTC, comment #3:

Posted to the mailing list:

The character changes almost every time, so it's not deterministic.
The screenshot shows the section that I copied, and the text file contains
the paste results. I think the first several pastes (maybe the first four
of them) contained extra spaces at the end of the second line when I
copied, but the subsequent copies were exactly what is shown in the
screenshot.
Some of the special characters are very interesting. For example, I don't
even know what:
??
is, and apparently, neither does Google.

John W. Eaton <jwe>
Project Administrator
Wed 04 Oct 2017 02:04:18 PM UTC, comment #2:

Some of the issues may be related to bug #52013

John Donoghue <lostbard>
Project Member
Sat 30 Sep 2017 08:20:33 PM UTC, comment #1:

Could you copy and paste into a file and then attach that file here. It would be good to know exactly what the value of the extra character is. This is probably some type of UTF-8, etc. issue.

Dan Sebald <sebald>
Fri 29 Sep 2017 08:41:12 PM UTC, original submission:

When I copy text from the Octave Command Window (from the output of having run a command), I often get strange characters in the output. For example, when I copy the text that displays as:

Average Training CE 2.935
Finished Training.
Final Training CE 2.935
Final Validation CE 2.925
Final Test CE 2.925
Training took 398.99 seconds

When I paste it into a text editor, it contains an unusual character that appears like this:

甜̅Average Training CE 2.935
Finished Training.
Final Training CE 2.935
Final Validation CE 2.925
Final Test CE 2.925
Training took 398.99 seconds

In this text input field on this bug tracker website, it shows up as a box because it's an unrecognized character, but it often appears as a Chinese character or some other type of foreign character. Sometimes there are many such characters that appear. Other times, the text doesn't copy at all.
I also sometimes have trouble copying from a text editor and into Octave where the text won't paste into Octave in the Command Window or in the Editor.

Devin G. Bost <devinbost>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #42073:  octave_special_characters.txt added by devinbost (588B - text/plain - It appears that the files I attached to email and submitted didn't actually load here as attachments, so I'm re-attaching them.)
file #42074:  Octave_copy_and_paste.PNG added by devinbost (73KiB - image/png - It appears that the files I attached to email and submitted didn't actually load here as attachments, so I'm re-attaching them.)
file #42075:  Google_doesnt_know_either.PNG added by devinbost (26KiB - image/png - It appears that the files I attached to email and submitted didn't actually load here as attachments, so I'm re-attaching them.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by lostbard (Posted a comment)
  • -unavailable- added by sebald (Posted a comment)
  • -unavailable- added by devinbost (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 07 Oct 2017 04:05:19 AM UTCdevinbostAttached File-=>Added octave_special_characters.txt, #42073
      Attached File-=>Added Octave_copy_and_paste.PNG, #42074
      Attached File-=>Added Google_doesnt_know_either.PNG, #42075

    Back to the top


    Powered by Savane 3.1-cleanup1