summaryrefslogtreecommitdiffstats
path: root/generic/tclParse.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclParse.c')
-rw-r--r--generic/tclParse.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c
index f2cf322..f26f933 100644
--- a/generic/tclParse.c
+++ b/generic/tclParse.c
@@ -991,7 +991,13 @@ TclParseBackslash(
if (readPtr != NULL) {
*readPtr = count;
}
- return Tcl_UniCharToUtf(result, dst);
+ count = Tcl_UniCharToUtf(result, dst);
+#if TCL_UTF_MAX > 3
+ if (!count) {
+ count = Tcl_UniCharToUtf(-1, dst);
+ }
+#endif
+ return count;
}
/*