Use plain ASCII 7bit chars if local charset or external charset is not declared or dos-charset table can't loaded

This commit is contained in:
Stas Degteff 2007-02-05 07:38:45 +00:00
parent 241a56a1d8
commit 79a8d300e6

View File

@ -808,16 +808,17 @@ void GThreadlist::GenTree(int idx)
return; return;
#ifdef KOI8 #ifdef KOI8
static char graph[4]="†„<EFBFBD>"; static char graph[4]="†„<EFBFBD>"; // Pseudographic chars KOI8-R
#else #else
static char graph_ibmpc[4]="ÃÀ³"; static char graph_ibmpc[4]="ÃÀ³"; // Pseudographic chars CP437, CP850, CP866
static char graph[4]=""; static char graph[4]="+*|"; // Default: plain ASCII7 chars
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); int level = LoadCharset(get_dos_charset(CFG->xlatlocalset), CFG->xlatlocalset);
XlatStr(graph, graph_ibmpc, level, CharTable); if(level)
XlatStr(graph, graph_ibmpc, level, CharTable);
if(table == -1) if(table == -1)
LoadCharset(CFG->xlatimport, CFG->xlatlocalset); LoadCharset(CFG->xlatimport, CFG->xlatlocalset);
else else