From: Harald O. <har...@el...> - 2025-04-25 17:38:17
|
Am 16.04.2025 um 14:03 schrieb Jan Nijtmans: > Op wo 16 apr 2025 om 13:35 schreef Harald Oehlmann: >> The migration: >> https://core.tcl-lang.org/tcl/wiki?name=Migrating+C+extensions+to+Tcl+9&p >> does not tell anything on this... > > So, that should be extended. All is described here: > <https://core.tcl-lang.org/tips/doc/trunk/tip/548.md> The migration page is now extended by the change of the MS-Windows system encoding: https://core.tcl-lang.org/tcl/info/e16612341c1416c5 and the deprecated Tcl_Winxxx functions: https://core.tcl-lang.org/tcl/info/d6ff4a080d8f9e87 I try to use full examples. The Tcl_Winxxx functions were never fully documented. I hope, this works. About TIP 548: https://core.tcl-lang.org/tips/doc/trunk/tip/548.md I am hesitant to document more. Basically, I don't understand the text. Or it is incomplete. The type "wchar_t" is 16 bit on Windows, but may be another size on other platforms. But this is a platform issue, not a TCL issue. I am also not happy by the word "utf-8". Here, not the utf-8 encoding is ment, but the TCL variant replacing the 0 Codepoint. Or is this not the case, e.g. the functions may not handle 0 bytes. Also, there is nothing written about eventual surrogates for the 16 bit functions. More questions than answers as usual.... Thanks for all, Harald P.S. I have retried my test with the updated branch. This does not make any difference (and should IMHO not). The result is ok and now, we have migration text ;-). |