diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-25 01:03:30 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-25 01:03:30 +0000 |
| commit | 589abeb702278ec209b4972f6c4c993949fa78ee (patch) | |
| tree | eaac6ba662e60ac40da921c74d86e95931c06ca6 /src/lib | |
| parent | a562abf85aeed64ce94a2c0c826de3fc9c21ae49 (diff) | |
Some comments.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config.cc | 1 | ||||
| -rw-r--r-- | src/lib/cross.cc | 3 |
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; |
