Of course, I will do it, no pb.<br>Is there a way to speed up Unison -- fastcheck seems to be inactive on sambas shares ...<br><br><div class="gmail_quote">2008/6/18 Benjamin Pierce &lt;<a href="mailto:bcpierce@cis.upenn.edu">bcpierce@cis.upenn.edu</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks for posting that, Patrice. &nbsp;If you have a minute, perhaps it<br>
would be useful to add it to the Unison Wiki pages as well?<br>
<font color="#888888"><br>
 &nbsp; &nbsp; - Benjamin<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Jun 17, 2008, at 9:19 AM, Patrice Espié wrote:<br>
<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I would like to tell the way I found to (continue to) use Unison<br>
&gt; with Linux and Windows, with &quot;strange&quot; characters in filenames. Not<br>
&gt; sure this is a good place to tell about it, but perhaps this<br>
&gt; solution should be added to the howtos of Unison.<br>
&gt;<br>
&gt; First of all, Linux handle characters correctly. So lets use Unison<br>
&gt; on Linux only ...<br>
&gt;<br>
&gt; To synchronize my Windows shares, I mount them in Linux. Big<br>
&gt; challenge here, because the mount process to obtain accents<br>
&gt; correctly is not easy (at least, not well documented on the net):<br>
&gt;<br>
&gt; //IP_ADDRESs/WINDOWS_SHARE_NAME &nbsp; &nbsp;/LOCAL_PATH_TO_MOUNT_TO<br>
&gt; cifs<br>
&gt; user<br>
&gt; ,rw<br>
&gt; ,uid<br>
&gt; =<br>
&gt; 1000<br>
&gt; ,gid<br>
&gt; =<br>
&gt; 1000<br>
&gt; ,umask=000,file_mode=0777,dir_mode=0777,iocharset=utf8,credentials=/<br>
&gt; root/.smbcredentials &nbsp; &nbsp;0 &nbsp; &nbsp;0<br>
&gt;<br>
&gt; with &quot;/root/.smbcredentials&quot; file contents:<br>
&gt;<br>
&gt; username=WINDOWS_USER_NAME<br>
&gt; password=WINDOWS_USER_PASSWORD<br>
&gt;<br>
&gt; Don&#39;t forget to add a blank line at the end of this file, it seems<br>
&gt; to be important for cifs.<br>
&gt;<br>
&gt; Then, everything is ok for using Unison from Linux. The only bad<br>
&gt; point is speed ...<br>
&gt;<br>
&gt; I hope this could help !<br>
&gt; Patrice<br>
&gt;<br>
&gt; 2008/6/17 Gregg Tavares &lt;<a href="mailto:unison@greggman.com">unison@greggman.com</a>&gt;:<br>
&gt;<br>
&gt;<br>
&gt; ----- Original Message ----<br>
&gt; &gt; From: Gregg Tavares &lt;<a href="mailto:unison@greggman.com">unison@greggman.com</a>&gt;<br>
&gt; &gt; To: Unison hackers &lt;<a href="mailto:unison-hackers@lists.seas.upenn.edu">unison-hackers@lists.seas.upenn.edu</a>&gt;<br>
&gt; &gt; Sent: Monday, June 16, 2008 10:26:26 PM<br>
&gt; &gt; Subject: Re: [Unison-hackers] Unicode names on Windows<br>
&gt; &gt;<br>
&gt; &gt; ----- Original Message ----<br>
&gt; &gt; &gt; From: Ralph Lehmann<br>
&gt; &gt; &gt; To: Unison hackers<br>
&gt; &gt; &gt; Sent: Monday, June 16, 2008 2:53:09 PM<br>
&gt; &gt; &gt; Subject: Re: [Unison-hackers] Unicode names on Windows<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Gregg Tavares schrieb:<br>
&gt; &gt; &gt; &gt;&gt; From: Benjamin Pierce<br>
&gt; &gt; &gt; &gt;&gt; To: Unison hackers<br>
&gt; &gt; &gt; &gt;&gt; Sent: Sunday, June 15, 2008 8:48:53 AM<br>
&gt; &gt; &gt; &gt;&gt; Subject: Re: [Unison-hackers] Unicode names on Windows<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; &gt; I know that this discussion about Unicode characters in<br>
&gt; file name<br>
&gt; &gt; &gt; &gt;&gt; &gt; is an old one, but I can&#39;t figure the problem is still<br>
&gt; alive ...<br>
&gt; &gt; &gt; &gt;&gt; &gt; So please, just tell me: Am I wrong with my usage of Unison<br>
&gt; &gt; &gt; &gt;&gt; &gt; (2.27.57) on my computers here ? (France / China, Ubuntu /<br>
&gt; Windows<br>
&gt; &gt; &gt; &gt;&gt; &gt; XP, and of course files Chinese characters in files ...)<br>
&gt; &gt; &gt; &gt; No, unison does not work with unicode file names. It&#39;s not<br>
&gt; unison&#39;s fault,<br>
&gt; &gt; &gt; &gt; it&#39;s that it only runs on Windows, AFAIK, through the unix<br>
&gt; emulation<br>
&gt; &gt; library,<br>
&gt; &gt; &gt; &gt; cygwin, and cygwin does not yet support unicode.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Please take a look at this site:<br>
&gt; &gt; &gt; <a href="http://www.okisoft.co.jp/esc/utf8-cygwin/" target="_blank">http://www.okisoft.co.jp/esc/utf8-cygwin/</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I did take a look at that. Unfortunately the filename buffers in<br>
&gt; cygwin<br>
&gt; &gt; are too small for typical chinese/japanese/korean filenames. It may<br>
&gt; &gt; work for short filenames but for a typical .mp3 filename like<br>
&gt; &gt;<br>
&gt; &gt; mp3folder/Band Name/Album Name/Track Name<br>
&gt; &gt;<br>
&gt; &gt; it will fail<br>
&gt; &gt;<br>
&gt; &gt; I tried recompiling that version of cygwin with larger filename<br>
&gt; &gt; buffers but it was beyond the time I had. The maximum filename<br>
&gt; &gt; size is not defined in one place. It could be that someone more<br>
&gt; &gt; familar with the code could get that patch to work easily but I<br>
&gt; &gt; couldn&#39;t. If anyone does I&#39;d love to hear about it.<br>
&gt; &gt;<br>
&gt;<br>
&gt; I should add that if you manage to get the filename buffer size large<br>
&gt; enough to work with Japanese/Chinese/Korean you&#39;ll also have to<br>
&gt; re-compile ocaml so that it starts using larger buffers for filenames<br>
&gt; and then recompile unison to use that new ocaml and that will<br>
&gt; probably require recompiling every tool that ocaml needs to get<br>
&gt; built.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Unison-hackers mailing list<br>
&gt; <a href="mailto:Unison-hackers@lists.seas.upenn.edu">Unison-hackers@lists.seas.upenn.edu</a><br>
&gt; <a href="http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers" target="_blank">http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Unison-hackers mailing list<br>
&gt; <a href="mailto:Unison-hackers@lists.seas.upenn.edu">Unison-hackers@lists.seas.upenn.edu</a><br>
&gt; <a href="http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers" target="_blank">http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers</a><br>
<br>
_______________________________________________<br>
Unison-hackers mailing list<br>
<a href="mailto:Unison-hackers@lists.seas.upenn.edu">Unison-hackers@lists.seas.upenn.edu</a><br>
<a href="http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers" target="_blank">http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Patrice Espie<br>Art de France Export<br>总裁<br><br>Head office France :<br>3, rue G. Rossini, 26000 Valence<br>Tel: +33 4 75 02 27 70 - Mobile: +33 6 33 04 34 23<br>
<a href="http://www.art-de-france-export.com">www.art-de-france-export.com</a><br><br>Shanghai Office :<br>Victoire - 法艺阁<br>The Bund Side - Room 3102 - Building N°7<br>288 Baidu road - Shanghai 200010, China<br>Tel: +86 21 6332 0787 - Mobile: +86 139 1740 2646<br>
<a href="http://www.victoire.cn">www.victoire.cn</a>