summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclUtf.c')
-rw-r--r--generic/tclUtf.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c
index a330d11..1876672 100644
--- a/generic/tclUtf.c
+++ b/generic/tclUtf.c
@@ -619,9 +619,7 @@ Tcl_UtfToUniCharDString(
}
end += 4;
while (p < end) {
- if (((unsigned)(UCHAR(*p)-0x80)) < 0x20) {
- ch = cp1252[UCHAR(*p++)-0x80];
- } else if (Tcl_UtfCharComplete(p, end-p)) {
+ if (Tcl_UtfCharComplete(p, end-p)) {
p += TclUtfToUniChar(p, &ch);
} else {
ch = UCHAR(*p++);
@@ -673,10 +671,8 @@ TclUtfToWCharDString(
}
end += 4;
while (p < end) {
- if (((unsigned)(UCHAR(*p)-0x80)) < 0x20) {
- ch = cp1252[UCHAR(*p++)-0x80];
- } else if (Tcl_UtfCharComplete(p, end-p)) {
- p += TclUtfToWChar(p, &ch);
+ if (Tcl_UtfCharComplete(p, end-p)) {
+ p += TclUtfToWChar(p, &ch);
} else {
ch = UCHAR(*p++);
}