Skip to content

Commit a5c38d3

Browse files
authored
Merge pull request #27 from popey/fix-encoding-issue-14
Fix SBOM encoding error on Windows
2 parents be2d1b3 + a014066 commit a5c38d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grummage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ async def load_sbom(self):
436436
def load_json(self, file_path):
437437
"""Load SBOM JSON from a file."""
438438
try:
439-
with open(file_path, "r") as file:
439+
with open(file_path, "r", encoding="utf-8") as file:
440440
return json.load(file)
441441
except Exception as e:
442442
self.debug_log(f"Error loading SBOM JSON: {e}")

0 commit comments

Comments
 (0)