<i>encoding command does not allow -strict to be used with -failindex</i> status still Pending with 3 other changes
by
.
D 2023-01-16T10:16:36.904
J icomment I'm\sOK\swith\schanging\sthe\simplementation,\smaking\s-strict\sindependant\sfrom\s-nocomplain/-failindex.\sIt's\sjust\sthat\s-failindex\sdoesn't\smake\smuch\ssense\swithout\s-strict,\sso\sthe\sexample\sin\sTIP\s#607\s(below)\swon't\swork\swithout\s-strict.\r\n\r\n<pre>\r\n>\sExample\sfor\s'Incomplete\smulti-byte\ssequence'\r\n>\s\sencoding\sconvertfrom\s-failindex\sPos\sutf-8\sA\\xC4\r\n>\sThe\sbyte\s'xC4'\sannounces\sa\smulti\sbyte\ssequence.\sThen,\snothing\sfollows.\r\n>\r\n>\sThe\scommand\swill\sreturn\s'A'\swith\svalue\s1\sin\svariable\s'Pos'.\r\n</pre>\r\n\r\nOf\scourse,\swe\scan\spost-edit\sthe\sTIP,\sadding\s"-strict"\sto\sthis\sexample.\sOtherwise:\r\n\r\n<pre>\r\n$\stclsh8.7\r\n%\sencoding\sconvertfrom\s-failindex\sPos\sutf-8\sA\\xC4\r\nAÄ\r\n%\sset\sPos\r\n-1\r\n</pre>\r\n\r\nThis\sis\sdifferent\sfrom\swhat\sthe\sTIP\sspecifies.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K a31caff05780aabdd20a8468673340435862dbf9
U jan.nijtmans
Z 0c39ac187728ac7b73001b4ef79e255d