Changeset fbc6b6c in mainline


Ignore:
Timestamp:
2021-03-29T15:39:15Z (4 years ago)
Author:
Jakub Jermář <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b0858150
Parents:
dbf1be5
git-author:
Jakub Jermář <jakub@…> (2021-03-29 15:37:17)
git-committer:
Jakub Jermář <jakub@…> (2021-03-29 15:39:15)
Message:

Fix handling of LFN names

Enforce python3 and correctly detect whether a file name needs to use
LFN entry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/mkfat.py

    rdbf1be5 rfbc6b6c  
    1 #!/usr/bin/env python
     1#!/usr/bin/env python3
    22#
    33# Copyright (c) 2008 Martin Decky
     
    193193
    194194        for char in name.encode('ascii', 'replace').upper():
    195                 if char in lchars:
    196                         filtered_name += char
     195                if chr(char) in lchars:
     196                        filtered_name += str.encode(chr(char))
    197197                else:
    198198                        filtered_name += b'_'
Note: See TracChangeset for help on using the changeset viewer.