1 --- a/tools/cpp/src/cpp-build/generate_geocoding_data.cc.orig 1970-01-01 01:00:01.000000000 +0100
2 +++ b/tools/cpp/src/cpp-build/generate_geocoding_data.cc 2024-01-16 19:03:45.409089423 +0100
7 -// Lists directory entries in path. "." and ".." are excluded. Returns true on
8 +// Lists directory entries in path. "." and ".." are excluded. Entries are
9 +// returned in a consistent order to ensure reproducibility. Returns true on
11 bool ListDirectory(const string& path, vector<DirEntry>* entries) {
14 // http://pubs.opengroup.org/onlinepubs/9699919799/functions/readdir.html
23 + entries->begin(), entries->end(),
24 + [](const DirEntry& a, const DirEntry& b) { return a.name() < b.name(); });
27 if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) {