octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50404] Double-byte characters lead to incorre


From: Mingye Wang
Subject: [Octave-bug-tracker] [bug #50404] Double-byte characters lead to incorrect line wrap in Command Window
Date: Tue, 4 Apr 2017 17:33:24 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3053.3 Safari/537.36

Follow-up Comment #4, bug #50404 (project octave):

> Are you OK with that change? 

Not quite. The wrapping problem has nothing to do with how many bytes the
character take up -- in UTF-8 it's three bytes for most chinese characters,
and "real" double-byte stuff like "π" does not mess up the alignment. This is
a column counting problem. Referring to wcwidth()'s manpage may help.

> Could you also please try if the same happens on the CLI?

In 4.2.0 conhost seems to handle it just fine. The codepage was not set to
65001 at first, but after some chcp it looks just fine. (You may need to set a
CJK-capable font to correctly see it "just fine".)

> But could you please try with the recently released Octave 4.2.1 whether the
issue still persists? 

Grabbing the installer, will report back soon.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50404>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]