| Index: tools/gn/command_format.cc
|
| diff --git a/tools/gn/command_format.cc b/tools/gn/command_format.cc
|
| index 76aed8410e6cfc18091b783bf18f0990d02f3491..01398adead7b6d76e83ea2def59ace9cd3626ca5 100644
|
| --- a/tools/gn/command_format.cc
|
| +++ b/tools/gn/command_format.cc
|
| @@ -737,7 +737,8 @@ int RunFormat(const std::vector<std::string>& args) {
|
| Setup setup;
|
| SourceDir source_dir =
|
| SourceDirForCurrentDirectory(setup.build_settings().root_path());
|
| - SourceFile file = source_dir.ResolveRelativeFile(args[0]);
|
| + SourceFile file = source_dir.ResolveRelativeFile(args[0],
|
| + setup.build_settings().root_path_utf8());
|
|
|
| std::string output_string;
|
| if (FormatFileToString(&setup, file, dump_tree, &output_string)) {
|
|
|