bugGNU Octave - Bugs: bug #50284, Unable to type or paste non-ASCII...

 
 

bug #50284: Unable to type or paste non-ASCII characters into the terminal window

Submitted by:  Mingye Wang <arthur2e5>
Submitted on:  Sun Feb 12 03:40:53 2017  
 
Category: GUISeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.2.0Operating System: Microsoft Windows

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sun Feb 26 15:40:27 2017, comment #5:

I changed the title according to your suggestion.

I can confirm that behaviour. The same happens when trying to enter an umlaut (e.g. ä) which has a dedicated key or a composed character (e.g. é) which is entered by the accent key followed by the base key on a German keyboard layout.
Copy-pasting also doesn't work. I tried pasting the following to the CLI or GUI:

Only the following is actually pasted:

Markus Mützel <mmuetzel>
Project Member
Sun Feb 26 14:35:10 2017, comment #4:

I am running it on Windows 10, hence the ability to see the "in addition to that" problem.

The mojibake in my old report happens in 4.0.0, so I guess it is really no longer the case. In the last comment I (sort of) shifted the complaint to copy/paste filtering. Is "Unable to type or paste non-ASCII characters into the terminal window" a good title?

Mingye Wang <arthur2e5>
Sun Feb 26 10:05:31 2017, comment #3:

What version of Windows do you use? If I remember correctly, UTF-8 support was non-existant in Windows XP, incomplete in Windows 7 (and maybe also in Windows 8) and did not work correctly before Windows 10.
The command window in Octave is basicly the Windows command prompt and (at least for the time being) we have to live with its limitations.

What do you want the title changed to?

Markus Mützel <mmuetzel>
Project Member
Sat Feb 25 23:40:59 2017, comment #2:

With system('chcp') I verified that Octave is indeed running under 65001.

Still, something in the terminal emulator is filtering out non-ASCII characters even on copy-paste. (Test input is "Déjà vu") Is there any way to retitle an issue?

In addition to that, writing and running a function that returns a UTF-8 string with multicolumn (East Asian Width, etc.) characters would ruin the terminal window's alignment. (Test input is something that returns "世界".) This one should be reported as a separate

Mingye Wang <arthur2e5>
Sat Feb 25 20:49:36 2017, comment #1:

How do you execute Octave? GUI or CLI?
The GUI should be using cp65001 by default.

I can confirm that the CLI uses the system code page.
You can change that manually by executing the following line at the Octave command line:

Does that work around your problem? If yes, you might consider adding that line to your ".octaverc" file until this is properly fixed in Octave.

Markus Mützel <mmuetzel>
Project Member
Sun Feb 12 03:40:53 2017, original submission:

Unicode support is becoming increasing useful as writers of certain Octave packages (like, well, "symbolic") start to use Unicode mathematical symbols in its help text as well as for output. However, since Octave currently seems to use the current system code page as opposed to cp65001 (Windows UTF-8) for output, it may display unreadable mojibake (bug #50283, pre-regression) for such characters.

(No luck with SetLocale in the launcher VBS. Running chcp 65001 before spawning the VBS does not work either.)

See also bug #49685.

Mingye Wang <arthur2e5>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mmuetzel (Posted a comment)
  • -unavailable- added by arthur2e5 (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Feb 26 15:40:27 2017mmuetzelStatusNone=>Confirmed
      SummaryAllow using UTF-8 for Command Window on Windows=>Unable to type or paste non-ASCII characters into the terminal window

    Back to the top


    Powered by Savane 3.1-cleanup1