<i>fcopy and encoding errors: no partial write, no transparency write</i> status still Open with 3 other changes
by
.
D 2023-11-16T21:57:27.334
J icomment I\sagree\sthat\s1\sis\sa\sbug\sand\s2\sis\sa\sdocumentation\sissue.\r\n\r\nHowever,\s3\sis\s-\sindeed\s-\sa\spossibility\sfor\sdata\sloss.\sAfter\sreading\sa\sblock\sof\sdata,\sthe\spointer\scannot\sbe\sput\sback\sto\sits\soriginal\sfile\sposition\s(it\smight\scome\sfrom\sa\ssocket).\sSo,\sIMHO,\sit\swould\sbe\sbest\sto\suse\sthe\s"-data"\skey\sas\swell\sfor\sthis\ssituation.\r\n\r\nThis\scan\sonly\shappen\swhen\sall\sof\sthese\sare\strue:\r\n-\sthe\soutput\schannel\s"-profile"\sis\s"strict"\r\n-\sthe\sinput\sand\soutput\sencoding\sare\sdifferent\r\n-\sthe\soutput\sencoding\sis\snot\sUTF-8/UTF-16/UTF-32\r\n\r\nSo,\sif\sany\sof\sthose\s3\sconditions\sis\sfalse,\swe\scould\suse\sthe\s"-data"\skey\shere\stoo.\r\n\r\nI\sthink\sthis\ssituation\sis\srare:\sWhy\swould\ssomeone\swant\sto\sconvert\sfrom\sUTF-8\sto\sanother\s(less\scapable)\sencoding?\sConverting\sfrom\sanother\sencoding\sto\sUTF-8\swill\sbe\smuch\smore\scommon.
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K a173f9229fe2fec80dc8d43a16c1d7366fb11945
U jan.nijtmans
Z 53bc428b05c5e066234c1cb391e5ba46