Hi all,<br><br>I would like to tell the way I found to (continue to) use Unison with Linux and Windows, with &quot;strange&quot; characters in filenames. Not sure this is a good place to tell about it, but perhaps this solution should be added to the howtos of Unison.<br>
<br>First of all, Linux handle characters correctly. So lets use Unison on Linux only ...<br><br>To synchronize my Windows shares, I mount them in Linux. Big challenge here, because the mount process to obtain accents correctly is not easy (at least, not well documented on the net):<br>
<br>//IP_ADDRESs/WINDOWS_SHARE_NAME &nbsp;&nbsp; /LOCAL_PATH_TO_MOUNT_TO &nbsp;&nbsp; cifs&nbsp;&nbsp;&nbsp; user,rw,uid=1000,gid=1000,umask=000,file_mode=0777,dir_mode=0777,iocharset=utf8,credentials=/root/.smbcredentials&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0<br><div id="1eou" class="ArwC7c ckChnd">

<br>with &quot;/root/.smbcredentials&quot; file contents:<br><br>username=WINDOWS_USER_NAME<br>password=WINDOWS_USER_PASSWORD</div><br>Don&#39;t forget to add a blank line at the end of this file, it seems to be important for cifs.<br>
<br>Then, everything is ok for using Unison from Linux. The only bad point is speed ...<br><br>I hope this could help !<br>Patrice<br><br><div class="gmail_quote">2008/6/17 Gregg Tavares &lt;<a href="mailto:unison@greggman.com">unison@greggman.com</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;"><div class="Ih2E3d"><br>
<br>
----- Original Message ----<br>
&gt; From: Gregg Tavares &lt;<a href="mailto:unison@greggman.com">unison@greggman.com</a>&gt;<br>
&gt; To: Unison hackers &lt;<a href="mailto:unison-hackers@lists.seas.upenn.edu">unison-hackers@lists.seas.upenn.edu</a>&gt;<br>
</div><div class="Ih2E3d">&gt; Sent: Monday, June 16, 2008 10:26:26 PM<br>
&gt; Subject: Re: [Unison-hackers] Unicode names on Windows<br>
&gt;<br>
</div><div class="Ih2E3d">&gt; ----- Original Message ----<br>
&gt; &gt; From: Ralph Lehmann<br>
</div><div><div></div><div class="Wj3C7c">&gt; &gt; To: Unison hackers<br>
&gt; &gt; Sent: Monday, June 16, 2008 2:53:09 PM<br>
&gt; &gt; Subject: Re: [Unison-hackers] Unicode names on Windows<br>
&gt; &gt;<br>
&gt; &gt; Gregg Tavares schrieb:<br>
&gt; &gt; &gt;&gt; From: Benjamin Pierce<br>
&gt; &gt; &gt;&gt; To: Unison hackers<br>
&gt; &gt; &gt;&gt; Sent: Sunday, June 15, 2008 8:48:53 AM<br>
&gt; &gt; &gt;&gt; Subject: Re: [Unison-hackers] Unicode names on Windows<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; &gt; I know that this discussion about Unicode characters in file name&nbsp;<br>
&gt; &gt; &gt;&gt; &gt; is an old one, but I can&#39;t figure the problem is still alive ...<br>
&gt; &gt; &gt;&gt; &gt; So please, just tell me: Am I wrong with my usage of Unison&nbsp;<br>
&gt; &gt; &gt;&gt; &gt; (2.27.57) on my computers here ? (France / China, Ubuntu / Windows&nbsp;<br>
&gt; &gt; &gt;&gt; &gt; XP, and of course files Chinese characters in files ...)<br>
&gt; &gt; &gt; No, unison does not work with unicode file names. It&#39;s not unison&#39;s fault,<br>
&gt; &gt; &gt; it&#39;s that it only runs on Windows, AFAIK, through the unix emulation<br>
&gt; library,<br>
&gt; &gt; &gt; cygwin, and cygwin does not yet support unicode.<br>
&gt; &gt;<br>
&gt; &gt; Please take a look at this site:<br>
&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;<br>
&gt;<br>
&gt; I did take a look at that. Unfortunately the filename buffers in cygwin<br>
&gt; are too small for typical chinese/japanese/korean filenames. It may<br>
&gt; work for short filenames but for a typical .mp3 filename like<br>
&gt;<br>
&gt; mp3folder/Band Name/Album Name/Track Name<br>
&gt;<br>
&gt; it will fail<br>
&gt;<br>
&gt; I tried recompiling that version of cygwin with larger filename<br>
&gt; buffers but it was beyond the time I had. The maximum filename<br>
&gt; size is not defined in one place. It could be that someone more<br>
&gt; familar with the code could get that patch to work easily but I<br>
&gt; couldn&#39;t. If&nbsp;anyone does I&#39;d love to hear about it.<br>
&gt;<br>
<br>
</div></div>I should add that if you manage to get the filename buffer size large<br>
enough to work with Japanese/Chinese/Korean you&#39;ll also have to<br>
re-compile ocaml so that it starts using larger buffers for filenames<br>
and then recompile unison to use that new ocaml and that will<br>
probably require recompiling every tool that ocaml needs to get<br>
built.<br>
<div><div></div><div class="Wj3C7c"><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>