~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-22 07:20:06 UTC
  • mfrom: (3443.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080522072006-acx3ybdu09zr98ka
Treat '' encoding as ascii

Show diffs side-by-side

added added

removed removed

Lines of Context:
1344
1344
    # Windows returns 'cp0' to indicate there is no code page. So we'll just
1345
1345
    # treat that as ASCII, and not support printing unicode characters to the
1346
1346
    # console.
1347
 
    if user_encoding in (None, 'cp0'):
 
1347
    #
 
1348
    # For python scripts run under vim, we get '', so also treat that as ASCII
 
1349
    if user_encoding in (None, 'cp0', ''):
1348
1350
        user_encoding = 'ascii'
1349
1351
    else:
1350
1352
        # check encoding