[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56173] Command window does not display Unicod
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #56173] Command window does not display Unicode correctly but editor does! |
Date: |
Fri, 19 Apr 2019 17:35:42 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0 |
URL:
<https://savannah.gnu.org/bugs/?56173>
Summary: Command window does not display Unicode correctly
but editor does!
Project: GNU Octave
Submitted by: None
Submitted on: Fri 19 Apr 2019 09:35:40 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
Windows 10 64-bit, Octave precompiled binary.
This Unicode display error is different from bug #47571 and others, because in
this case the *editor* can display Unicode properly but the *command window
fails*. It's narrower in scope and likely easier to fix.
See below:
Copy-paste from editor:
# function to display a 3x3x3 Rubik's cube as a cube net
function dispcube (p, colors = num2str((1:54)',"%02d")) # p is a permutation,
colors = a set of color labels
assert(length(p) == 54);
assert(all(sort(p) == (1:54)))
assert(size(colors,1) == 54);
colors = colors(p,:);
fprintf(1, "
╔════╤════╤════╗\n");
fprintf(1, " ║ %s │ %s │ %s ║\n", colors(7,:),
colors(8,:), colors(9,:));
fprintf(1, "
╟────┼────┼────╢\n");
fprintf(1, " ║ %s │ %s │ %s ║\n", colors(4,:),
colors(5,:), colors(6,:));
fprintf(1, "
╟────┼────┼────╢\n");
fprintf(1, " ║ %s │ %s │ %s ║\n", colors(1,:),
colors(2,:), colors(3,:));
fprintf(1,
"╔════╤════╤════╬════╪════╪════╬════╤════╤════╦════╤════╤════╗\n");
fprintf(1, "║ %s │ %s │ %s ║ %s │ %s │ %s ║ %s │ %s │ %s
║ %s │ %s │ %s ║\n", ...
colors(43,:), colors(40,:), colors(37,:), colors(10,:), colors(13,:),
colors(16,:), ...
colors(19,:), colors(22,:), colors(25,:), colors(34,:), colors(31,:),
colors(28,:));
fprintf(1,
"╟────┼────┼────╫────┼────┼────╫────┼────┼────╫────┼────┼────╢\n");
fprintf(1, "║ %s │ %s │ %s ║ %s │ %s │ %s ║ %s │ %s │ %s
║ %s │ %s │ %s ║\n", ...
colors(44,:), colors(41,:), colors(38,:), colors(11,:), colors(14,:),
colors(17,:), ...
colors(20,:), colors(23,:), colors(26,:), colors(35,:), colors(32,:),
colors(29,:));
fprintf(1,
"╟────┼────┼────╫────┼────┼────╫────┼────┼────╫────┼────┼────╢\n");
fprintf(1, "║ %s │ %s │ %s ║ %s │ %s │ %s ║ %s │ %s │ %s
║ %s │ %s │ %s ║\n", ...
colors(45,:), colors(42,:), colors(39,:), colors(12,:), colors(15,:),
colors(18,:), ...
colors(21,:), colors(24,:), colors(27,:), colors(36,:), colors(33,:),
colors(30,:));
fprintf(1,
"╚════╧════╧════╬════╪════╪════╬════╧════╧════╩════╧════╧════╝\n");
fprintf(1, " ║ %s │ %s │ %s ║\n", colors(46,:),
colors(47,:), colors(48,:));
fprintf(1, "
╟────┼────┼────╢\n");
fprintf(1, " ║ %s │ %s │ %s ║\n", colors(49,:),
colors(50,:), colors(51,:));
fprintf(1, "
╟────┼────┼────╢\n");
fprintf(1, " ║ %s │ %s │ %s ║\n", colors(52,:),
colors(53,:), colors(54,:));
fprintf(1, "
╚════╧════╧════╝\n");
endfunction
Copy-paste from command window, where the output is garbled:
╔����╤����╤����╗
║ Wh │ Wh │ Rd ║
╟────┼────┼────╢
║ Wh │ Wh │ Bl ║
╟────┼────┼────╢
║ Wh │ Gr │ Rd ║
╔����╤����╤����╬����╪����╪����╬����╤����╤����╦����╤����╤����╗
║ Gr │ Rd │ Bl ║ Or │ Wh │ Bl
║ Wh │ Wh │ Wh ║ Gr │ Or │ Or
â•‘
╟────┼────┼────╫────┼────┼────╫────┼────┼────╫────┼────┼────╢
║ Rd │ Rd │ Rd ║ Bl │ Bl │ Bl
║ Or │ Or │ Or ║ Gr │ Gr │ Gr
â•‘
╟────┼────┼────╫────┼────┼────╫────┼────┼────╫────┼────┼────╢
║ Rd │ Rd │ Rd ║ Bl │ Bl │ Bl
║ Or │ Or │ Or ║ Gr │ Gr │ Gr
â•‘
╚����╧����╧����╬����╪����╪����╬����╧����╧����╩����╧����╧�����
║ Yw │ Yw │ Yw ║
╟────┼────┼────╢
║ Yw │ Yw │ Yw ║
╟────┼────┼────╢
║ Yw │ Yw │ Yw ║
╚����╧����╧�����
How to make the command window use the same font display settings as the
editor?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56173>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #56173] Command window does not display Unicode correctly but editor does!,
anonymous <=