Skip to content

Commit

Permalink
Fix errprone issues with stdin work
Browse files Browse the repository at this point in the history
  • Loading branch information
agentgt committed Jan 13, 2025
1 parent ed3049b commit 2c24133
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ public void warn(String message) {

}

@SuppressWarnings("ArrayRecordComponent") // TODO We will fix this later.
record DefaultKeyValuesEnvironment(@NonNull String @Nullable [] mainArgs) implements KeyValuesEnvironment {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.io.InputStream;
import java.io.PrintStream;
import java.net.URI;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -65,7 +66,7 @@ public Logger getLogger() {

@Override
public InputStream getStandardInput() {
return new ByteArrayInputStream(stdin.getBytes());
return new ByteArrayInputStream(stdin.getBytes(StandardCharsets.UTF_8));
}

@Override
Expand Down

0 comments on commit 2c24133

Please sign in to comment.