From 79a8d300e61d9225abec70f49c430393a2088ef4 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Mon, 5 Feb 2007 07:38:45 +0000 Subject: [PATCH] Use plain ASCII 7bit chars if local charset or external charset is not declared or dos-charset table can't loaded --- golded3/gemlst.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/golded3/gemlst.cpp b/golded3/gemlst.cpp index 30450f0..484496e 100644 --- a/golded3/gemlst.cpp +++ b/golded3/gemlst.cpp @@ -808,16 +808,17 @@ void GThreadlist::GenTree(int idx) return; #ifdef KOI8 - static char graph[4]=""; + static char graph[4]=""; // Pseudographic chars KOI8-R #else - static char graph_ibmpc[4]=""; - static char graph[4]=""; + static char graph_ibmpc[4]=""; // Pseudographic chars CP437, CP850, CP866 + static char graph[4]="+*|"; // Default: plain ASCII7 chars if(graph[0] == NUL) { int table = LoadCharset(NULL, NULL, 1); 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) LoadCharset(CFG->xlatimport, CFG->xlatlocalset); else