Changeset 4b16422 in mainline for tools/mkfat.py
- Timestamp:
- 2012-05-30T20:36:37Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5c5c346a
- Parents:
- ce683ed3 (diff), 692be1ae (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/mkfat.py
rce683ed3 r4b16422 189 189 "Filter FAT legal characters" 190 190 191 filtered_name = ''191 filtered_name = b'' 192 192 filtered = False 193 193 … … 205 205 206 206 ascii_name, lfn = fat_lchars(name) 207 ascii_parts = ascii_name.split('.') 207 # Splitting works only on strings, not on bytes 208 ascii_parts = ascii_name.decode('utf8').split('.') 208 209 209 210 short_name = '' … … 444 445 extra_bytes = int(sys.argv[1]) 445 446 446 path = os.path.abspath(sys.argv[2] .decode())447 path = os.path.abspath(sys.argv[2]) 447 448 if (not os.path.isdir(path)): 448 449 print("<PATH> must be a directory")
Note:
See TracChangeset
for help on using the changeset viewer.