~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Neil Martinsen-Burrell
  • Date: 2008-05-05 17:02:02 UTC
  • mto: (3443.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 3447.
  • Revision ID: nmb@wartburg.edu-20080505170202-8dwdkpzks4jshr3v
accept  for an encoding to mean ascii

Show diffs side-by-side

added added

removed removed

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