Artifact Content
Not logged in

Artifact bd1ff49dd2ea688f68ed3a071e85404cde1b2e32

Ticket change [bd1ff49dd2] - Ticket 838bde7990 file extracted from Fossil zip archive could have different name status still Open with 1 other change by kkinnell on 2008-12-04 03:01:05.

D 2008-12-04T03:01:05
J comment @rem\sissue\sdemostration<br>\r\ndel\s.\\_fossil_<br>\r\ndel\s.\\test.fossil<br>\r\nrmdir\s/Q\s/S\s.\\testdir<br>\r\nmkdir\s.\\testdir<br>\r\ndel\smanifest.uuid<br>\r\ndel\smanifest<br>\r\ncd\s.\\testdir<br>\r\necho\s345678>"1r&#345;&#345;&#345;&#345;\s\s\sR\s.test"<br>\r\ncd\s..<br>\r\nfossil\snew\stest.fossil<br>\r\nfossil\sopen\stest.fossil<br>\r\nfossil\sadd\s.\\testdir\\\\"1r&#345;&#345;&#345;&#345;\s\s\sR\s.test"<br>\r\nfossil\sls<br>\r\nfossil\scommit\s-m\s"check\sin\sa\sfile\swith\saccended\schar/s\sand\sspaces\sin\sits\sname"\s--nosign<br>\r\nfossil\sui<br>\r\n----<br>\r\non\swin\sXP<br>\r\nI\screate\sfile\swith\ssome\saccending\scharacters\sin\sits\sname,\scommit\sit\sto\sthe\sfossil\srepository\sand\ssave\srepository\sas\sa\szip\sfile.\r\nWhen\sI\sextract\ssuch\sfile\sfrom\sfossil\sgenerated\sfile\sby\swindows\sExplorer/Total\sCommander\sI\sget\sfile\swith\sdifferent\sname.<br>\r\nExtracting\sby\sunzip\sprogram\sfrom\sInfo-ZIP\sweb\ssite\syields\scorrectly\snamed\sfile.\r\n\r\nIn\sabove\sexample\sI\screate\sfile\swith\s"r-caron"\schars\sin\sits\sname(U+0159),\safter\sunzipping\sI\sget\sfile\swith\s"DEGREE\sSIGN"(U+00B0)\sin\sit\sinstead.\r\nMany\sother\scharacters\sget\stwisted\sin\ssimilar\sway.\sI\swonder,\sif\sthere\sshould\sbe\ssomething\smarked\sin\szip\sfile\sheader,\sas\show\sto\sinterpret\sstored\sfile\sname.\r\nI\stried\sto\scheck\sdifferences\swith\sexplorer\sgenerated\szip\sfiles/fossil\sgenerated\sones\swith\shelp\sof:<br>\r\nunzip\s-Zv\sbyZIP.zip\s>byZIP.lst<br>\r\nunzip\s-Zv\sbyFossil.zip\s>byFossil.lst<br>\r\nso\sfar\sto\sno\savail.\r\n\r\n<hr><i>anonymous\sclaiming\sto\sbe\skkinnell\sadded\son\s2008-12-03\s02:56:00:</i><br>\r\nIf\sI'm\sreading\sthis\scorrectly,\syou\sstored\sa\sfile\scontaining\sutf8\sor\suc16\sencoded\scharacters\sin\sa\srepository,\sand\sthen\sgot\sthe\szip\sfor\sthe\srepository\sby\sdownloading\sit\sfrom\sthe\sserver.\s\sThen,\swhen\syou\sunzipped\sit\swith\sone\swindows\sprogram,\sthe\sfile\swas\sencoded\sincorrectly,\sbut\swhen\syou\sunzipped\sit\swith\sa\sdifferent\swindows\sprogram,\sthe\sencoding\swas\scorrect.\r\n\r\nIf\sthat\sis\swhat\shappened,\sthen\sthe\sproblem\sis\show\sthe\sprograms\syou\sare\susing\sfor\sunzipping\sthe\sfiles\sare\sinterpreting\sthem.\s\sThe\sone\sthat\sgives\syou\sthe\scorrect\sversion\sis\susing\sthe\ssame\sencoding\sthat\syou\sused\swhen\syou\screated\sthe\sfile,\sthe\sother\sone\sis\susing\ssomething\selse.\r\n\r\n<b>fossil</b>\sitself\suses\sSQLite\sBLOBs\sto\sstore\sits\sartifacts.\s\sThe\sstorage\sdoesn't\sencode\sthe\sdata\sin\sany\sway,\sit\streats\sit\sas\sbinary\sdata.\s\s\r\n\r\n<hr><i>anonymous\sadded\son\s2008-12-03\s04:53:53:</i><br>\r\nThe\scontent\sof\sfile(s)\sis\scorrect.\sWhat\scauses\strouble\sis\sthe\sname/path\sof\sfile\shaving\saccented\scharacters.<br>\r\n\r\nIf\sI\smodify\sthe\stest\sand\stry\sto\sadd\sfile\son\spath\salready\shaving\smix\sof\saccended/not\saccended\scharacters\sand\sspaces,\s<br>\r\nit\sis\seven\snot\slisting\ssuch\sfile\sin\sFile\sList\smenu\swhich\sI\swould\sconsider\sa\sbug.<br>\r\n(I\scan\ssave\szip\sarchive\sfrom\sfossil,\sview\sfile\scontent(diff)\sbut\swill\snot\ssee\ssuch\sfile\slisted\sin\sFile\sList\smenu)<br>\r\nProduced\szip\sarchive\scan\sbe\scorrectly\sextracted\sby\sunzip\sfrom\sInfo-ZIP\sweb\ssite.\sWindows\sExplorer\swill\sshow\sjust\sbadly\stranscoded\sfile\sname\son\sbadly\stranscoded\sfile\spath.<br>\r\nUsed\stest\spath\suses\s"r-caron"\schars\s(U+0159),"s-caron"(U+0161)\sand\s"LATIN\sSMALL\sLETTER\sY\sWITH\sACUTE"\s(U+00FD)\saccented\scharacters.<br>\r\n\r\ndel\s.\\_fossil_<br>\r\ndel\s.\\test.fossil<br>\r\nrmdir\s/Q\s/S\s.\\\\"testS&#353;&#353;&#353;SR&#345;&#345;&#345;R\s\s\sY&#253;&#253;&#253;Y"<br>\r\nmkdir\s.\\\\"testS&#353;&#353;&#353;SR&#345;&#345;&#345;R\s\s\sY&#253;&#253;&#253;Y"<br>\r\ndel\smanifest.uuid<br>\r\ndel\smanifest<br>\r\ncd\s.\\\\"testS&#353;&#353;&#353;SR&#345;&#345;&#345;R\s\s\sY&#253;&#253;&#253;Y"<br>\r\necho\scontent\sof\sfile>"1r&#345;&#345;&#345;&#345;\s\s\sR\s.test"<br>\r\ncd\s..<br>\r\nfossil\snew\stest.fossil<br>\r\nfossil\sopen\stest.fossil<br>\r\nfossil\sadd\s.\\\\"testS&#353;&#353;&#353;SR&#345;&#345;&#345;R\s\s\sY&#253;&#253;&#253;Y"\\\\"1r&#345;&#345;&#345;&#345;\s\s\sR\s.test"<br>\r\nfossil\sls<br>\r\nfossil\scommit\s-m\s"check\sin\sa\sfile\swith\saccended\schar(s)\sand\sspaces\sin\sits\sname\son\sa\spath\swith\saccedended\scharacters\sand\sspaces"\s--nosign<br>\r\nfossil\sui<br>\r\n---<BR>\r\nfossil\sls<br>\r\nADDED\s\s\s\s\stestS&#220;&#220;&#220;SR&#176;&#176;&#176;R\s\s\sY&#345;&#345;&#345;Y/1r&#176;&#176;&#176;&#176;\s\s\sR\s.test<br>\r\n\r\n\r\n<hr><i>kkinnell\sadded\son\s2008-12-03\s16:20:32:</i><br>\r\nI\shave\stested\sthis\sin\sthe\sLinux\sversion,\svia\scopy\sand\spaste\susing\sthe\sexact\sstring\syou\sare\susing\s(testS&#353;&#353;&#353;SR&#345;&#345;&#345;R\sY&#253;&#253;&#253;Y).\r\n\r\nI\scan\sconfirm\sthat\sthe\sencoding\sused\sfor\sdisplay\sof\sthe\sfilename\sand\scontents\sare\snot\sthe\ssame\sas\sthe\sencoding\sused\sfor\swiki,\sthe\swiki\sstrings\sare\s"entified"\sas\s&amp;#ddd;\sdecimals\swhereas\sdisplay\sof\sthe\sfile\spath\sstrings\sare\sdependent\son\sthe\sbrowser's\sdefault\sencoding.\s\sWhen\sI\sset\smy\sbrowser\sto\suse\sthe\sdefault\swindows\sencoding\s(Western,\sor\sLatin-1\swhich\sis\sISO-8859-1)\sI\sget\sbehavior\ssimilar\sto\sthat\swhich\syou\sdescribe.\r\n\r\nI\sthink\sit\sis\spossible\syou\s<code><b>add</b></code>ed\sthe\sfile\sthat\sis\snot\sshowing\sup\sin\sthe\sfile\slist,\sbut\sdid\snot\s<code><b>commit</b></code>\sthe\schange\safterward.\s\sThis\sis\sthe\sonly\sway\sI\shave\sbeen\sable\sto\sreplicate\sthis\sbehavior.\r\n\r\nPlease\sverify\sthat\sall\sof\syour\sencodings&#8212;system,\sbrowser\sand\szip\sprograms,\sare\sthe\ssame\sas\syour\sinput\ssystem\sand\ssee\sif\syou\sstill\sget\sbad\sbehavior.\s\sI\scan\sduplicate\smost\sof\sthe\sproblems\syou\sare\shaving\sby\smis-matching\sthe\sencodings,\sbut\sI\sam\son\sa\sGNU/Linux\ssystem\sand\sI\scan't\sbe\s<i>sure</i>\sthere\sis\snot\ssomething\speculiar\sto\sthe\swindows\sversion\scausing\spart\sof\syour\sproblem.
K 838bde7990d8e190957cbfe7f15c77322dc54e57
U kkinnell
Z dc143285b94870359b10321da00379f8