Merge "Fix BpfLoaderRcUtils to support IOS_8859_1" into main

This commit is contained in:
Maciej Żenczykowski
2023-12-08 11:38:55 +00:00
committed by Gerrit Code Review

View File

@@ -87,7 +87,7 @@ public class BpfLoaderRcUtils {
List<String> contents = new ArrayList<>(); List<String> contents = new ArrayList<>();
boolean bpfSectionFound = false; boolean bpfSectionFound = false;
try (BufferedReader br = new BufferedReader( try (BufferedReader br = new BufferedReader(
new InputStreamReader(inputStream, StandardCharsets.UTF_8))) { new InputStreamReader(inputStream, StandardCharsets.ISO_8859_1))) {
String line; String line;
while ((line = br.readLine()) != null) { while ((line = br.readLine()) != null) {
line = line.trim(); line = line.trim();