Set proper charset on log files

This commit is contained in:
Eelco Dolstra 2017-03-31 17:59:51 +02:00
parent ec1c8efd43
commit 147ba3ca31
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -154,7 +154,7 @@ State::StepResult State::doBuildStep(nix::ref<Store> destStore,
try {
auto store = destStore.dynamic_pointer_cast<BinaryCacheStore>();
if (uploadLogsToBinaryCache && store && pathExists(result.logFile)) {
store->upsertFile("log/" + baseNameOf(buildDrvPath), readFile(result.logFile), "text/plain");
store->upsertFile("log/" + baseNameOf(buildDrvPath), readFile(result.logFile), "text/plain; charset=utf-8");
unlink(result.logFile.c_str());
}
} catch (...) {