Skip to content

Commit

Permalink
Normalize instances of UTF to Unicode
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed May 8, 2024
1 parent 3b2e2f7 commit ef2403b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scancode/cli_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ def streamline_scanned_file(scanned_file, remove_file_date=False, normalize_file
if normalize_file_type and (file_type := scanned_file.get('file_type')):
file_type_segments = file_type.split()
normalized_file_type = file_type_segments[0]
if 'UTF' in normalized_file_type:
normalized_file_type = 'Unicode'
scanned_file['file_type'] = normalized_file_type


Expand Down

0 comments on commit ef2403b

Please sign in to comment.