From: <lu...@us...> - 2008-11-16 09:37:50
|
Revision: 253 http://s3tools.svn.sourceforge.net/s3tools/?rev=253&view=rev Author: ludvigm Date: 2008-11-16 09:37:44 +0000 (Sun, 16 Nov 2008) Log Message: ----------- Merge from 0.9.8.x branch, rel 244: * s3cmd: Unicode brainfuck again. This time force all output in UTF-8, will see how many complaints we'll get... Modified Paths: -------------- s3cmd/trunk/ChangeLog s3cmd/trunk/s3cmd Modified: s3cmd/trunk/ChangeLog =================================================================== --- s3cmd/trunk/ChangeLog 2008-11-06 11:57:56 UTC (rev 252) +++ s3cmd/trunk/ChangeLog 2008-11-16 09:37:44 UTC (rev 253) @@ -1,3 +1,9 @@ +2008-11-16 Michal Ludvig <mi...@lo...> + + Merge from 0.9.8.x branch, rel 244: + * s3cmd: Unicode brainfuck again. This time force all output + in UTF-8, will see how many complaints we'll get... + 2008-09-16 Michal Ludvig <mi...@lo...> * NEWS: s3cmd 0.9.8.4 released from branches/0.9.8.x SVN branch. Modified: s3cmd/trunk/s3cmd =================================================================== --- s3cmd/trunk/s3cmd 2008-11-06 11:57:56 UTC (rev 252) +++ s3cmd/trunk/s3cmd 2008-11-16 09:37:44 UTC (rev 253) @@ -22,10 +22,14 @@ from distutils.spawn import find_executable ## Output native on TTY, UTF-8 otherwise (redirects) -_stdout = sys.stdout.isatty() and sys.stdout or codecs.getwriter("utf-8")(sys.stdout) -_stderr = sys.stderr.isatty() and sys.stderr or codecs.getwriter("utf-8")(sys.stderr) -#_stdout = codecs.getwriter("utf-8")(sys.stdout) -#_stderr = codecs.getwriter("utf-8")(sys.stderr) +#_stdout = sys.stdout.isatty() and sys.stdout or codecs.getwriter("utf-8")(sys.stdout) +#_stderr = sys.stderr.isatty() and sys.stderr or codecs.getwriter("utf-8")(sys.stderr) +## Output UTF-8 in all cases +_stdout = codecs.getwriter("utf-8")(sys.stdout) +_stderr = codecs.getwriter("utf-8")(sys.stderr) +## Leave it to the terminal +#_stdout = sys.stdout +#_stderr = sys.stderr def output(message): _stdout.write(message + "\n") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |