Fix Xlat of pseudographical characters
This commit is contained in:
parent
0dd33ddc32
commit
32589e5c3e
@ -811,16 +811,23 @@ void GThreadlist::GenTree(int idx)
|
|||||||
static char graph[4]="†„<EFBFBD>"; // Pseudographic chars KOI8-R
|
static char graph[4]="†„<EFBFBD>"; // Pseudographic chars KOI8-R
|
||||||
#else
|
#else
|
||||||
static char graph_ibmpc[4]="ÃÀ³"; // Pseudographic chars CP437, CP850, CP866
|
static char graph_ibmpc[4]="ÃÀ³"; // Pseudographic chars CP437, CP850, CP866
|
||||||
static char graph[4]="";
|
static char graph[4]="\0\0\0";
|
||||||
|
|
||||||
if(graph[0] == NUL)
|
if(graph[0] == NUL)
|
||||||
{
|
{
|
||||||
int table = LoadCharset(NULL, NULL, 1);
|
int table = LoadCharset(NULL, NULL, 1);
|
||||||
int level = LoadCharset(get_dos_charset(CFG->xlatlocalset), CFG->xlatlocalset);
|
const char *doscp = get_dos_charset(CFG->xlatlocalset);
|
||||||
if(level)
|
if(doscp[0]) // console charset is known
|
||||||
XlatStr(graph, graph_ibmpc, level, CharTable);
|
{
|
||||||
|
int level = LoadCharset(doscp, CFG->xlatlocalset);
|
||||||
|
if(level!=-1)
|
||||||
|
XlatStr(graph, graph_ibmpc, level, CharTable);
|
||||||
|
else
|
||||||
|
strxcpy(graph, "+*|", ARRAYSIZE(graph)); // Default: plain ASCII7 chars
|
||||||
|
}
|
||||||
else
|
else
|
||||||
strxcpy(graph, "+*|", ARRAYSIZE(graph)); // Default: plain ASCII7 chars
|
memcpy(graph, graph_ibmpc, sizeof(graph));
|
||||||
|
|
||||||
if(table == -1)
|
if(table == -1)
|
||||||
LoadCharset(CFG->xlatimport, CFG->xlatlocalset);
|
LoadCharset(CFG->xlatimport, CFG->xlatlocalset);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user