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 <<a href="mailto:bcpierce@cis.upenn.edu">bcpierce@cis.upenn.edu</a>>:<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. 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>
- Benjamin<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Jun 17, 2008, at 9:19 AM, Patrice Espié wrote:<br>
<br>
> Hi all,<br>
><br>
> I would like to tell the way I found to (continue to) use Unison<br>
> with Linux and Windows, with "strange" characters in filenames. Not<br>
> sure this is a good place to tell about it, but perhaps this<br>
> solution should be added to the howtos of Unison.<br>
><br>
> First of all, Linux handle characters correctly. So lets use Unison<br>
> on Linux only ...<br>
><br>
> To synchronize my Windows shares, I mount them in Linux. Big<br>
> challenge here, because the mount process to obtain accents<br>
> correctly is not easy (at least, not well documented on the net):<br>
><br>
> //IP_ADDRESs/WINDOWS_SHARE_NAME /LOCAL_PATH_TO_MOUNT_TO<br>
> cifs<br>
> user<br>
> ,rw<br>
> ,uid<br>
> =<br>
> 1000<br>
> ,gid<br>
> =<br>
> 1000<br>
> ,umask=000,file_mode=0777,dir_mode=0777,iocharset=utf8,credentials=/<br>
> root/.smbcredentials 0 0<br>
><br>
> with "/root/.smbcredentials" file contents:<br>
><br>
> username=WINDOWS_USER_NAME<br>
> password=WINDOWS_USER_PASSWORD<br>
><br>
> Don't forget to add a blank line at the end of this file, it seems<br>
> to be important for cifs.<br>
><br>
> Then, everything is ok for using Unison from Linux. The only bad<br>
> point is speed ...<br>
><br>
> I hope this could help !<br>
> Patrice<br>
><br>
> 2008/6/17 Gregg Tavares <<a href="mailto:unison@greggman.com">unison@greggman.com</a>>:<br>
><br>
><br>
> ----- Original Message ----<br>
> > From: Gregg Tavares <<a href="mailto:unison@greggman.com">unison@greggman.com</a>><br>
> > To: Unison hackers <<a href="mailto:unison-hackers@lists.seas.upenn.edu">unison-hackers@lists.seas.upenn.edu</a>><br>
> > Sent: Monday, June 16, 2008 10:26:26 PM<br>
> > Subject: Re: [Unison-hackers] Unicode names on Windows<br>
> ><br>
> > ----- Original Message ----<br>
> > > From: Ralph Lehmann<br>
> > > To: Unison hackers<br>
> > > Sent: Monday, June 16, 2008 2:53:09 PM<br>
> > > Subject: Re: [Unison-hackers] Unicode names on Windows<br>
> > ><br>
> > > Gregg Tavares schrieb:<br>
> > > >> From: Benjamin Pierce<br>
> > > >> To: Unison hackers<br>
> > > >> Sent: Sunday, June 15, 2008 8:48:53 AM<br>
> > > >> Subject: Re: [Unison-hackers] Unicode names on Windows<br>
> > > >><br>
> > > >> > I know that this discussion about Unicode characters in<br>
> file name<br>
> > > >> > is an old one, but I can't figure the problem is still<br>
> alive ...<br>
> > > >> > So please, just tell me: Am I wrong with my usage of Unison<br>
> > > >> > (2.27.57) on my computers here ? (France / China, Ubuntu /<br>
> Windows<br>
> > > >> > XP, and of course files Chinese characters in files ...)<br>
> > > > No, unison does not work with unicode file names. It's not<br>
> unison's fault,<br>
> > > > it's that it only runs on Windows, AFAIK, through the unix<br>
> emulation<br>
> > library,<br>
> > > > cygwin, and cygwin does not yet support unicode.<br>
> > ><br>
> > > Please take a look at this site:<br>
> > > <a href="http://www.okisoft.co.jp/esc/utf8-cygwin/" target="_blank">http://www.okisoft.co.jp/esc/utf8-cygwin/</a><br>
> > ><br>
> ><br>
> > I did take a look at that. Unfortunately the filename buffers in<br>
> cygwin<br>
> > are too small for typical chinese/japanese/korean filenames. It may<br>
> > work for short filenames but for a typical .mp3 filename like<br>
> ><br>
> > mp3folder/Band Name/Album Name/Track Name<br>
> ><br>
> > it will fail<br>
> ><br>
> > I tried recompiling that version of cygwin with larger filename<br>
> > buffers but it was beyond the time I had. The maximum filename<br>
> > size is not defined in one place. It could be that someone more<br>
> > familar with the code could get that patch to work easily but I<br>
> > couldn't. If anyone does I'd love to hear about it.<br>
> ><br>
><br>
> I should add that if you manage to get the filename buffer size large<br>
> enough to work with Japanese/Chinese/Korean you'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>
><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>
><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>
<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>