summaryrefslogtreecommitdiffstats
path: root/library/console.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-23 10:50:32 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-23 10:50:32 (GMT)
commit05e4fd3bf63de0be170aaf67df185f01c30f6ea0 (patch)
treedd88698d419b0353a29461e38c377d3f2d97725e /library/console.tcl
parent5164db768ac805564630f25daae0357dad688b0c (diff)
parent4d8498f181894261f21358d49ab8ba2dfe3b021a (diff)
downloadtk-05e4fd3bf63de0be170aaf67df185f01c30f6ea0.zip
tk-05e4fd3bf63de0be170aaf67df185f01c30f6ea0.tar.gz
tk-05e4fd3bf63de0be170aaf67df185f01c30f6ea0.tar.bz2
Merge 8.6
Diffstat (limited to 'library/console.tcl')
-rw-r--r--library/console.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 1763584..1da85be 100644
--- a/library/console.tcl
+++ b/library/console.tcl
@@ -215,7 +215,7 @@ proc ::tk::ConsoleSource {} {
[list [mc "Tcl Scripts"] .tcl] \
[list [mc "All Files"] *]]]
if {$filename ne ""} {
- set cmd [list source $filename]
+ set cmd [list source -encoding utf-8 $filename]
if {[catch {consoleinterp eval $cmd} result]} {
ConsoleOutput stderr "$result\n"
}
@@ -592,7 +592,7 @@ proc ::tk::ConsoleBind {w} {
}
bind Console <F9> {
eval destroy [winfo child .]
- source [file join $tk_library console.tcl]
+ source -encoding utf-8 [file join $tk_library console.tcl]
}
if {[tk windowingsystem] eq "aqua"} {
bind Console <Command-q> {