diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-02-29 22:35:27 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-02-29 22:35:27 (GMT) |
| commit | da3c4caf80cba57f26b99b8c73f99978101d9d42 (patch) | |
| tree | 24d210b443eb8490c24363a3fafb1987ee4ab084 | |
| parent | 70f56a10da5105939c1273932fede3f5e34784c1 (diff) | |
| download | tcl-da3c4caf80cba57f26b99b8c73f99978101d9d42.zip tcl-da3c4caf80cba57f26b99b8c73f99978101d9d42.tar.gz tcl-da3c4caf80cba57f26b99b8c73f99978101d9d42.tar.bz2 | |
oops, that's no utf-8 BOM ;-(
| -rw-r--r-- | generic/tclIOUtil.c | 2 | ||||
| -rw-r--r-- | tests/source.test | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index 5a8d022..da0eb46 100644 --- a/generic/tclIOUtil.c +++ b/generic/tclIOUtil.c @@ -1770,7 +1770,7 @@ Tcl_FSEvalFile(interp, pathPtr) * 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 1e5b732..06d6b51 100644 --- a/tests/source.test +++ b/tests/source.test @@ -124,7 +124,7 @@ test source-2.7 {utf-8 with BOM} -setup { } -body { encoding system utf-8 set out [open $sourcefile w] - puts $out "\ufffeset y new-y" + puts $out "\ufeffset y new-y" close $out set y old-y source $sourcefile |
