From 589abeb702278ec209b4972f6c4c993949fa78ee Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 25 Nov 2013 01:03:30 +0000 Subject: Some comments. --- src/lib/config.cc | 1 + src/lib/cross.cc | 3 +++ 2 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/lib/config.cc b/src/lib/config.cc index 2420ab1b5..54b9168f2 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -181,6 +181,7 @@ Config::read () void Config::read_old_metadata () { + /* XXX: this won't work with non-Latin filenames */ ifstream f (file(true).string().c_str ()); string line; diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 9aa8454c9..7436dbf26 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -70,6 +70,9 @@ cpu_info () string info; #ifdef DCPOMATIC_LINUX + /* This use of ifstream is ok; the filename can never + be non-Latin + */ ifstream f ("/proc/cpuinfo"); while (f.good ()) { string l; -- cgit v1.2.3