Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2021-03-18
21:18 • Ticket [2788497fff] toupper limitations status still Open with 6 other chang... artifact: fe4fc191a4 user: jan.nijtmans
2014-02-21
19:08 • Ticket [2788497fff]: 1 change artifact: 5c2ca547d7 user: jan.nijtmans
2009-08-27
15:10 • Ticket [2788497fff]: 4 changes artifact: bf18c4d696 user: nijtmans
14:58 • Ticket [2788497fff]: 4 changes artifact: a2b3436df6 user: dkf
13:53 • Ticket [2788497fff]: 4 changes artifact: 402924f7ca user: nijtmans
2009-05-08
18:25 • Ticket [2788497fff]: 4 changes artifact: 02b8808bb3 user: nijtmans
16:03 • Ticket [2788497fff]: 4 changes artifact: 9109b9cf38 user: dkf
14:36 • Ticket [2788497fff]: 4 changes artifact: 86410b33ea user: nijtmans
2009-05-07
16:45 • New ticket [2788497fff]. artifact: b7e7e461e5 user: dgp

toupper limitations

Open2788497fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 6 years ago
Descriptionplain2009-05-07 16:45:34
kbk\u0149 should uppercase to \u02bc\u004e
dgpTcl_UniCharToUpper() cannot represent that.
dgpone Tcl_UniChar in; one Tcl_UniChar out.
kbkThe fundamental assumption underlying Tcl_UniCharToUpper is wrong.
nijtmansplain2009-05-08 14:36:51
On the long run, I don't think it's wise to
do all UTF-8 processing specially in Tcl,
while there are better solutions outside,
e.g. utf8proc:
   http://freshmeat.net/projects/utf8proc/
I would be in favour of including utf8proc
in Tcl, and deprecate Tcl's own UTF-8
handling functions.

Anyone knows of (better) alternatives to
utf8proc? This is worth a TIP!
dkfplain2009-05-08 16:03:44
Definitive link is
      http://www.flexiguided.de/publications.utf8proc.en.html

My principal concern is that it doesn't look to be actively maintained. Perhaps it is perfect...? :-)
nijtmansplain2009-05-08 18:25:53
yeah, like libtommath ;-)
nijtmansplain2009-08-27 13:53:55
utf8proc has a new home:
    http://www.public-software-group.org/utf8proc
I think that answers the concern regarding
the maintainance of this software. utf8proc
is not perfect, and in its current form not
even usable for Tcl (e.g. it doesn't compile
with MSVC 6). But all this is fixable, and
having an organisation as contact point
is a big improvement compared to the
earlier situation
dkfplain2009-08-27 14:58:22
OK, my non-technical objections are dealt with. Now it's more to do with the actual details of how to do the integration, but that's not something that I expect to be a show-stopper. Just takes effort.

This probably ought to be done on a feature-dev branch so that we can get things sorted out (including what API changes we want) before rolling into the mainline, and that also means it won't make 8.6.
nijtmansplain2009-08-27 15:10:15
How about a simpler path. utf8proc already has ruby bindings, but no Tcl binding. I am planning to write a Tcl stub-enabled extension to
utf8proc, with full TEA support. This extension is simply a wrapper to
all UTF-8 conversions we need. As soon as this works, we know it is
integratable with Tcl. And the development can be done in the
utf8proc repository. I only have to become an utf8proc submitter,
but I already am talking to Jan Behrens about that.

No it won't make 8.6, for sure. I wouln't even try that.
jan.nijtmans Ticket [2788497fff]: 1 change [History diff]2014-02-21 19:08:36
jan.nijtmanswiki2021-03-18 21:18:22
Log in (anonymous is fine) to add a comment.