Skip to content
Tcl Source Code Artifact [a4dd187f5a]
Login

Artifact [a4dd187f5a]

Artifact a4dd187f5a85b8a080571aba2974687fe5e9bfced19c52f4cf1dcfc4089cfceb:

Ticket change [a4dd187f5a] - Ticket [a31caff05780aabd|a31caff057] <i>encoding command does not allow -strict to be used with -failindex</i> status still Pending with 4 other changes by oehhar on 2023-01-16 11:09:28.
D 2023-01-16T11:09:28.229
J icomment Dear\sJan,\r\nthanks\sfor\sthe\scomment.\r\n\r\nFor\sme,\sthe\s"-strict"\soption\sis\san\sencoding\svariant.\r\nSo,\sit\sis\stogether\swith\sthe\sencoding\sitself.\r\n\r\nThe\sonly\s"-strict"\srelevant\sTIP\son\smy\sradar\sis\sTIP\s346\r\nThe\sTIP\ssays,\sthat:\r\n\r\n\s\s\s*\s\s\sfor\sutf-8\sencoding,\sthe\sbyte\ssequence\s"\\xC0\\x80"\sis\saccepted\swithout\s"-strict"\sand\snot\saccepted\swith\sit.\r\n\s\s\s*\s\s\sinvalid\sbyte\ssequence\shandling\sin\sUTF-8.\sReplace\sany\snot\sencodable\sand\sincomplete\sbyte\sby\sthe\sthe\sbyte\sitself\r\n\r\nSo,\sthe\sTIP\s(without\s-strict)\sdefines\sa\sUTF-8\sencoding\svariant,\swhere\snot\sencodable\sbytes\sare\sreplaced\sby\sthe\sdata\sitself.\r\nIMHO,\sthis\sis\sjust\sa\sbroken\sby\sdesign\sutf-8\svariant,\sbut\sok,\sthe\sTIP\sis\sas\sit\sis.\r\n\r\nThe\s2nd\sbullet\sof\sthe\sTIP\ssould\sbe\shandled\sby\sthe\serror\sreporting\smode,\sas\swith\sall\sother\smulti-byte\sencodings.\r\n\r\nUnfortunately,\sutf-8\sis\sdifferent.\r\nHere\swe\shave\sthe\ssituation,\sthat\swe\shave\stwo\sdifferent\sencodings,\sone\swith\san\sinteresting\sreplacement\smethod\sof\sinvalid\sbytes,\sone\swithout.\r\n\r\nI\shope,\sthis\sinteresting\sspecial\shandling\swill\snot\sgo\sto\sother\smulti-byte\sencodings\slike\sshift-jis,\sbig5,\sUTF-16....\r\n\r\nThank\syou\sagain,\r\nHarald
J login oehhar
J mimetype text/x-fossil-wiki
J username oehhar
K a31caff05780aabdd20a8468673340435862dbf9
U oehhar
Z 0159567813c2142b728bda81f53143b1