Changeset df3f85f in mainline for tools/mkfat.py


Ignore:
Timestamp:
2012-05-23T12:03:26Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
692be1ae, 8ad5470, f7e69f5
Parents:
c196671 (diff), 67435b1 (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.
Message:

Merge GSOC-originated patches

Merge from lp:~vojtech-horky/helenos/misc.

The merge includes:

  • Switching to previous directory with `cd -' in Bdsh
  • Interactive mode for cp module in Bdsh
  • Implementation of sleep command
  • printf and echo for Bdsh
  • Rewrite of the mkdir module
  • Ctrl-arrow jumps over words in the editor
  • The scripts work with Python 3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/mkfat.py

    rc196671 rdf3f85f  
    189189        "Filter FAT legal characters"
    190190       
    191         filtered_name = ''
     191        filtered_name = b''
    192192        filtered = False
    193193       
     
    205205       
    206206        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('.')
    208209       
    209210        short_name = ''
     
    444445        extra_bytes = int(sys.argv[1])
    445446       
    446         path = os.path.abspath(sys.argv[2].decode())
     447        path = os.path.abspath(sys.argv[2])
    447448        if (not os.path.isdir(path)):
    448449                print("<PATH> must be a directory")
Note: See TracChangeset for help on using the changeset viewer.