Overview
| Artifact ID: | 77874b2e4682f113bd9a7ed1d743129d6e910dcbb0195e3375b15ddb8c450697 |
|---|---|
| Ticket: | 084ab982fea4c32aaab57251eeea0d7c829893a0
Use -strict to disable noncharacters |
| User & Date: | pooryorick on 2022-12-26 20:31:11 |
Changes
- closer changed to: "nobody"
- icomment:
Overloading <code>-strict</code> for this purpose is incorrect, as <code>-strict</code> should be dedicated to how to handle invalid data in an encoding, not on choosing which data to consider invalid. This is a separate concern that should be handled by separate options. By default, an encoder/decoder should conform to the specification, and options can be provided to direct the encoder/decoder to deviate in some way. In this case, a suitable option might be <code>-onlychars 1</code>, with the default being <code>-onlychars 0</code> to conform to the specification. There could be additional options such as <code>-surrogates 1</code> (default is <code>-surrogates 0</code>) and <code>-nonchars 0</code> (default is <code>-nonchars 1</code>). This is more complicated, but oversimplification can be a bad thing. The Unicode specification entails a certain amount of complexity, and there is no way around that. In the case of Unicode, the proper target for Tcl is fidelity.
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Accepted"
- status changed to: "Open"