Skip to content

Commit

Permalink
Set proper charset on log files
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Mar 31, 2017
1 parent ec1c8ef commit 147ba3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hydra-queue-runner/builder.cc
Expand Up @@ -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 (...) {
Expand Down

0 comments on commit 147ba3c

Please sign in to comment.