diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-18 07:43:29 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-18 07:43:29 -0400 |
commit | 467db1a731630891c28cfa78a3a754cdc3027555 (patch) | |
tree | 492bb0e0c9d3198669407912fd302a000e5c1c5a /.be/bugs/68ba7f0c-ca5f-4f49-a508-e39150c07e13 | |
parent | 54113960c5633c4f43865f68c8463e05d1cfbc1a (diff) | |
download | bugseverywhere-467db1a731630891c28cfa78a3a754cdc3027555.tar.gz |
Better unicode handling in be-handle-mail.
be-handle-mail now gets a bit further on
cat examples/unicode | ./be-handle-mail -o -l - 2>&1 1>/dev/null
It successfully reads in unicode output from the command execution and
successfully prints that output to the log ("-l - 2>&1 1>/dev/null" sets
up the log to be printed to the terminal's stdout). However, it chokes
later on with
responding to John Doe <jdoe@example.com>: show
Traceback (most recent call last):
File "./be-handle-mail", line 274, in <module>
main()
File "./be-handle-mail", line 266, in main
response_email = compose_response(ret, out_text, err_text, info).plain()
File "./be-handle-mail", line 210, in compose_response
LOGFILE.write("\n%s\n\n" % send_pgp_mime.flatten(response_email.plain()))
File "/home/wking/src/fun/be/be.email/interfaces/email/interactive/send_pgp_mime.py", line 165, in flatten
g.flatten(msg)
File "/usr/lib/python2.5/email/generator.py" ...
...
UnicodeEncodeError: 'ascii' codec can't encode character u'\ufffd' in position 2581: ordinal not in
range(128)
Diffstat (limited to '.be/bugs/68ba7f0c-ca5f-4f49-a508-e39150c07e13')
0 files changed, 0 insertions, 0 deletions