Changeset 359 in tailor


Ignore:
Timestamp:
05/05/05 11:11:01 (8 years ago)
Author:
zooko@…
Hash name:
20050505091101-92b7f-669a46f2fb0de67c1c77bbf2ef5b999d6741313a
Message:

utf-8 encode a couple of things which caused exceptions when processing Twisted SVN

Location:
vcpx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vcpx/shwrap.py

    r311 r359  
    120120                inp, out = popen2(command) 
    121121                def handleinp(): 
    122                     inp.write(input) 
     122                    inp.write(input.encode('utf8')) 
    123123                    inp.close() 
    124124                inpthread = threading.Thread(target = handleinp) 
  • vcpx/tailor.py

    r317 r359  
    2121from source import InvocationError 
    2222from session import interactive 
     23 
     24# Make printouts be UTF-8 encoded. 
     25import codecs, sys 
     26sys.stdout = codecs.getwriter('utf8')(sys.stdout) 
    2327 
    2428STATUS_FILENAME = 'tailor.info' 
Note: See TracChangeset for help on using the changeset viewer.