Set proper charset on log files
This commit is contained in:
parent
ec1c8efd43
commit
147ba3ca31
|
@ -154,7 +154,7 @@ State::StepResult State::doBuildStep(nix::ref<Store> destStore,
|
||||||
try {
|
try {
|
||||||
auto store = destStore.dynamic_pointer_cast<BinaryCacheStore>();
|
auto store = destStore.dynamic_pointer_cast<BinaryCacheStore>();
|
||||||
if (uploadLogsToBinaryCache && store && pathExists(result.logFile)) {
|
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());
|
unlink(result.logFile.c_str());
|
||||||
}
|
}
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|
Loading…
Reference in a new issue