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

 
 

bug #52145: Copy and paste results in strange output

Submitter:  Devin G. Bost <devinbost>
Submitted:  Fri 29 Sep 2017 08:41:12 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Devin Bost Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 27 Mar 2019 03:51:37 PM UTC, comment #9: 

I will assume that the 5.2.0 version of Octave will be generated using the latest MXE tip which means this bug will be fixed at that time.  Closing report.

Rik <rik5>
Group administrator
Thu 21 Mar 2019 06:55:32 PM UTC, comment #8: 

How will the next bug fix release, 5.2.0, be generated?  Will it use the current MXE tip, or will it use a frozen MXE version from the date that 5.1.0 was made?

If this fix will naturally be picked up at 5.2.0 then I think we can close the report.

Rik <rik5>
Group administrator
Thu 21 Mar 2019 02:28:29 PM UTC, comment #7: 

Still an issue in the released version of octave 5.1.0, however is no longer doing this for me since mxe commit https://hg.octave.org/mxe-octave/rev/5049ab5e66f6

John Donoghue <lostbard>
Group Member
Sun 03 Mar 2019 05:45:05 AM UTC, comment #6: 

Version 4.2.1 is deprecated and no longer supported.  Please try with the latest stable release which is 5.1.0.  The problem is likely to have been fixed.

Rik <rik5>
Group administrator
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:


E1 8A BD Average Training CE 2.712 0D 0A
Finished Training. 0D 0A
Final Training CE 2.712 0D 0A
0D 0A
C4 80 Average Training CE 2.712 0D 0A
Finished Training. 0D 0A
0D 0A
CC 80 Average Training CE 2.712 0D 0A
Finished Training. 0D 0A
0D 0A
CC 80 Average Training CE 2.712 0D 0A
Finished Training. 0D 0A
0D 0A
Average Training CE 2.712 0D 0A
Finished Training. 0D 0A
0D 0A
D4 80 Average Training CE 2.712 0D 0A
Finished Training. 0D 0A
0D 0A
Average Training CE 2.712 0D 0A
Finished Training. 0D 0A
0D 0A
D0 80 Average Training CE 2.712 0D 0A
Finished Training. 0D 0A
0D 0A
Average Training CE 2.712 0D 0A
Finished Training. 0D 0A
0D 0A
EA 87 AF E0 A0 80 Average Training CE 2.712 0D 0A
Finished Training. 0D 0A
0D 0A
E0 AC 80 Average Training CE 2.712
Finished Training. 0D 0A
0D 0A
0D 0A


The prepended characters are


E1 8A BD
C4 80
CC 80
CC 80

D4 80

D0 80

EA 87 AF E0 A0 80
E0 AC 80


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>
Group 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>
Group 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 Files:
   
   
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
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by sebald (Posted a comment)
  • -email is unavailable- added by devinbost (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-27 rik5 StatusNeed Info Fixed
        Open/ClosedOpen Closed
        Release4.2.1 5.1.0
    2019-03-03 rik5 StatusNone Need Info
    2017-10-07 devinbost Attached 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.13-3230.
    Corresponding source code