Overview
| Artifact ID: | 3f822e13adc78dc1da37c41922d3065b6cfb3e3c |
|---|---|
| Ticket: | 2819611fffffffffffffffffffffffffffffffff
Use Microsoft Layer for Unicode for win95/98/ME support |
| User & Date: | nijtmans on 2009-08-16 17:40:55 |
Changes
- icomment:
Adds implementation, which allows to compile Tcl in two ways: without mslu support and with mslu support. Without mslu, everything is as before. But when unicows.lib is available (detected in the configure script), then an additional runtime check is done whether we are running on <WinNT and if unicows.dll is available. If so, then the "unicode" encoding is used internally and unicows.dll is loaded to perform all necessary conversions. This way doesn't have any disadvantage: everything still works unchanged on Win95/98/ME, but there is a single potential incompatibility: The function Tcl_WinUtfToTChar currently always uses the system encoding when running on Win95/98/ME, but with this change it might start to use the "unicode" encoding in stead. Code which depend on that (like Tk!) will have to be adapted, but the modification is trivial. I hope that this change could be accepted for Tcl 8.6, I don't think a TIP is needed for that. But someone with This patch will only work after compat/mslu/unicows.dll is checked in, but this file is redistributable so that doesn't cause any legal problems. The file unicows.lib is - unfortunately - not redistributable, but it is available from any newer Microsoft SDK. Any feedback is welcome.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"