Hi Carlos,
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position
59: ordinal not in range(128)
would you like to give the attached patch a try and tell me if it helps?
Thanks
Michal
Index: s3cmd
===================================================================
--- s3cmd (revision 207)
+++ s3cmd (working copy)
@@ -14,6 +14,7 @@
import pwd, grp
import glob
import traceback
+import codecs
from copy import copy
from optparse import OptionParser, Option, OptionValueError, IndentedHelpFormatter
@@ -1037,6 +1038,9 @@
from S3 import Utils
from S3.Exceptions import *
+ ## Output UTF-8 in all cases, even on output redirects
+ sys.stdout = codecs.getwriter("utf-8")(sys.stdout)
+
main()
sys.exit(0)
except SystemExit, e:
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general