Menu

Commit [r7390]  Maximize  Restore  History

In `trac-admin`, also consistently use `console_print` for the text sent to sys.stdout.

That will be useful for translated texts, but also for a few other situations, like when exporting a wiki page on the console (`print text`). In that situation, I noticed the previous version of `print_console` was not robust enough, as you easily get unicode code points for which no encoding exist in the console charset, hence we need to use the 'replace' mode.

Closes #7241.

cboos 2008-07-25

changed /branches/0.11-stable/trac/admin/console.py
changed /branches/0.11-stable/trac/util/text.py
/branches/0.11-stable/trac/admin/console.py Diff Switch to side-by-side view
Loading...
/branches/0.11-stable/trac/util/text.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB