summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-25 01:03:30 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-25 01:03:30 +0000
commit589abeb702278ec209b4972f6c4c993949fa78ee (patch)
treeeaac6ba662e60ac40da921c74d86e95931c06ca6 /src
parenta562abf85aeed64ce94a2c0c826de3fc9c21ae49 (diff)
Some comments.
Diffstat (limited to 'src')
-rw-r--r--src/lib/config.cc1
-rw-r--r--src/lib/cross.cc3
2 files changed, 4 insertions, 0 deletions
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;