aboutsummaryrefslogtreecommitdiff
path: root/tool/replace.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tool/replace.tcl')
-rw-r--r--tool/replace.tcl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/replace.tcl b/tool/replace.tcl
index 1ecc6dc7b..5a1ac5983 100644
--- a/tool/replace.tcl
+++ b/tool/replace.tcl
@@ -4,6 +4,8 @@
# only lines successfully modified with a regular
# expression.
#
+fconfigure stdout -translation binary -encoding binary
+fconfigure stderr -translation binary -encoding binary
set mode [string tolower [lindex $argv 0]]
set from [lindex $argv 1]
set to [lindex $argv 2]