Skip to content

Commit

Permalink
bugfix: Add encoding to fix issue with non ASCII letter
Browse files Browse the repository at this point in the history
I will also need to check if that works on windows, but that can be easily checked on Windows
  • Loading branch information
tgodzik committed May 20, 2024
1 parent 9eb637f commit a760bf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/metals-languageclient/src/fetchMetals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ export async function fetchMetals({
return { promise: spawn(javaPath, jarArgs) };
} else {
return {
promise: spawn(coursier, coursierArgs),
promise: spawn(
coursier,
["-J-Dfile.encoding=UTF-8"].concat(coursierArgs)
),
};
}
}
Expand Down

0 comments on commit a760bf2

Please sign in to comment.