summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-02-29 22:38:28 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-02-29 22:38:28 (GMT)
commit786b9476948b51cf309ed1a8d72128a848c49404 (patch)
treeba8097797b0b02c73971d1ae6c08582b3d1be312
parent27f2997b0bae6113da9da3d21bef2ce8b4b048e3 (diff)
parentda3c4caf80cba57f26b99b8c73f99978101d9d42 (diff)
downloadtcl-786b9476948b51cf309ed1a8d72128a848c49404.zip
tcl-786b9476948b51cf309ed1a8d72128a848c49404.tar.gz
tcl-786b9476948b51cf309ed1a8d72128a848c49404.tar.bz2
oops, that's no utf-8 BOM ;-(
-rw-r--r--generic/tclIOUtil.c2
-rw-r--r--tests/source.test2
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index 44849d1..efdb457 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -1803,7 +1803,7 @@ Tcl_FSEvalFileEx(
* otherwise replace them [Bug 3466099].
*/
if (Tcl_ReadChars(chan, objPtr, -1,
- memcmp(string, "\xef\xbf\xbe", 3)) < 0) {
+ memcmp(string, "\xef\xbb\xbf", 3)) < 0) {
Tcl_Close(interp, chan);
Tcl_AppendResult(interp, "couldn't read file \"",
Tcl_GetString(pathPtr), "\": ", Tcl_PosixError(interp), NULL);
diff --git a/tests/source.test b/tests/source.test
index e79b211..641838c 100644
--- a/tests/source.test
+++ b/tests/source.test
@@ -112,7 +112,7 @@ test source-2.7 {utf-8 with BOM} -setup {
} -body {
set out [open $sourcefile w]
fconfigure $out -encoding utf-8
- puts $out "\ufffeset y new-y"
+ puts $out "\ufeffset y new-y"
close $out
set y old-y
source -encoding utf-8 $sourcefile