Tcl Source Code

Check-in [b553432c31]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:For Unicode 6.3, mongolian vowel separator (U+180e) is nominated to change character class from Space to Control character. Make sure that "string is space" will continue to return 1 for this character. See TIP #413.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b553432c31ffbef4ce83729e2cef8abecf3a3260
User & Date: jan.nijtmans 2013-02-25 13:16:21
Context
2013-02-25
14:55
3605719,3605720 Test independence. Thanks Rolf Ade for patches. check-in: c4b02b8c49 user: dgp tags: trunk
13:52
merge trunk. Update all unicode tables to current state of Unicode 6.3 (not released yet) check-in: 2fffdb3621 user: jan.nijtmans tags: novem
13:49
merge trunk check-in: 3b77ae7a29 user: dgp tags: dgp-refactor
13:38
Merge trunk. Upgrade all tables to Unicode 6.3 (not released yet) check-in: adf88dd045 user: jan.nijtmans tags: tip-389-impl
13:16
For Unicode 6.3, mongolian vowel separator (U+180e) is nominated to change character class from Spac... check-in: b553432c31 user: jan.nijtmans tags: trunk
2013-02-23
20:00
Bug [3599194]: compat/fake-rfc2553.c is broken check-in: 3f470535de user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to generic/tclUtf.c.

1512
1513
1514
1515
1516
1517
1518
1519

1520
1521
1522
1523
1524
1525
1526
1527
    /*
     * If the character is within the first 127 characters, just use the
     * standard C function, otherwise consult the Unicode table.
     */

    if (((Tcl_UniChar) ch) < ((Tcl_UniChar) 0x80)) {
	return isspace(UCHAR(ch)); /* INTL: ISO space */
    } else if ((Tcl_UniChar) ch == 0x0085 || (Tcl_UniChar) ch == 0x200b

	    || (Tcl_UniChar) ch == 0x2060 || (Tcl_UniChar) ch == 0xfeff) {
	return 1;
    } else {
	return ((SPACE_BITS >> GetCategory(ch)) & 1);
    }
}

/*







|
>
|







1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
    /*
     * If the character is within the first 127 characters, just use the
     * standard C function, otherwise consult the Unicode table.
     */

    if (((Tcl_UniChar) ch) < ((Tcl_UniChar) 0x80)) {
	return isspace(UCHAR(ch)); /* INTL: ISO space */
    } else if ((Tcl_UniChar) ch == 0x0085 || (Tcl_UniChar) ch == 0x180e
	    || (Tcl_UniChar) ch == 0x200b || (Tcl_UniChar) ch == 0x2060
	    || (Tcl_UniChar) ch == 0xfeff) {
	return 1;
    } else {
	return ((SPACE_BITS >> GetCategory(ch)) & 1);
    }
}

/*