Browse Source

Merge branch 'master' of code.douglasthrift.net:dtpstree

Douglas William Thrift 14 years ago
parent
commit
4a3cdddbb2
1 changed files with 8 additions and 0 deletions
  1. 8 0
      dtpstree.cpp

+ 8 - 0
dtpstree.cpp

@@ -257,5 +257,13 @@ int main(int argc, char *argv[])
 		break;
 	}
 
+	std::setlocale(LC_ALL, "");
+
+	char line[MB_LEN_MAX];
+	int size(std::wctomb(line, L'└'));
+
+	if (size != -1)
+		std::cout << std::string(line, size) << std::endl;
+
 	return 0;
 }