summaryrefslogtreecommitdiffstats
path: root/tools/makeHeader.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-03 09:09:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-12-03 09:09:25 (GMT)
commitb1517df3ff0aa3be2bb952a719ffbbc27d69e226 (patch)
tree775035ad317d0c0fe0fb8cbf923362a7eef0f40a /tools/makeHeader.tcl
parenta2e1bdf3b541497d607533fa83d88daebca4737e (diff)
downloadtcl-b1517df3ff0aa3be2bb952a719ffbbc27d69e226.zip
tcl-b1517df3ff0aa3be2bb952a719ffbbc27d69e226.tar.gz
tcl-b1517df3ff0aa3be2bb952a719ffbbc27d69e226.tar.bz2
Simplify some \\u???? escape sequences to \\x??
Diffstat (limited to 'tools/makeHeader.tcl')
-rw-r--r--tools/makeHeader.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/makeHeader.tcl b/tools/makeHeader.tcl
index dd2f199..c72219f 100644
--- a/tools/makeHeader.tcl
+++ b/tools/makeHeader.tcl
@@ -25,7 +25,7 @@ namespace eval makeHeader {
}
set XFORM {[format \\\\\\\\u%04x {*}[scan & %c]]}
- subst [regsub -all {[^\u0020-\u007e]} [string map $MAP $str] $XFORM]
+ subst [regsub -all {[^\x20-\x7E]} [string map $MAP $str] $XFORM]
}
####################################################################