summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-07-29 10:12:12 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-07-29 10:12:12 (GMT)
commit9bfd2fab46c184c9b9e968190461f706c8729572 (patch)
tree77052a1b04cfbe94d67b034868a6b6d1fd59091d /generic/tclUtf.c
parent83bd34e627b2f9c0c0b5fe3917e82f3428dc9565 (diff)
parent35f064fd91f1a987c493f4740df59d3a0f162a42 (diff)
downloadtcl-9bfd2fab46c184c9b9e968190461f706c8729572.zip
tcl-9bfd2fab46c184c9b9e968190461f706c8729572.tar.gz
tcl-9bfd2fab46c184c9b9e968190461f706c8729572.tar.bz2
Make sure that "string is space \u202f" will continue to return "1", even if in future Unicode this character (NARROW_NO_BREAK_SPACE) will cease to be a space. See: [http://www.unicode.org/review/pri249/].
Don't hardcode "tclWinError.o" for Cygwin
Diffstat (limited to 'generic/tclUtf.c')
-rw-r--r--generic/tclUtf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c
index a349846..15529c7 100644
--- a/generic/tclUtf.c
+++ b/generic/tclUtf.c
@@ -1558,7 +1558,7 @@ Tcl_UniCharIsSpace(
return TclIsSpaceProc((char) ch);
} else if ((Tcl_UniChar) ch == 0x0085 || (Tcl_UniChar) ch == 0x180e
|| (Tcl_UniChar) ch == 0x200b || (Tcl_UniChar) ch == 0x2060
- || (Tcl_UniChar) ch == 0xfeff) {
+ || (Tcl_UniChar) ch == 0x202f || (Tcl_UniChar) ch == 0xfeff) {
return 1;
} else {
return ((SPACE_BITS >> GetCategory(ch)) & 1);