Overview
| Artifact ID: | ea9a8fb65476f3b382f293ea7be1a7612b8f4ff3ba99a97f6cfc1ee6d87b20e9 |
|---|---|
| Ticket: | a31caff05780aabdd20a8468673340435862dbf9
encoding command does not allow -strict to be used with -failindex |
| User & Date: | jan.nijtmans on 2023-01-16 10:16:36 |
Changes
- icomment:
I'm OK with changing the implementation, making -strict independant from -nocomplain/-failindex. It's just that -failindex doesn't make much sense without -strict, so the example in TIP #607 (below) won't work without -strict. <pre> > Example for 'Incomplete multi-byte sequence' > encoding convertfrom -failindex Pos utf-8 A\xC4 > The byte 'xC4' announces a multi byte sequence. Then, nothing follows. > > The command will return 'A' with value 1 in variable 'Pos'. </pre> Of course, we can post-edit the TIP, adding "-strict" to this example. Otherwise: <pre> $ tclsh8.7 % encoding convertfrom -failindex Pos utf-8 A\xC4 AÄ % set Pos -1 </pre> This is different from what the TIP specifies.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"