Hi all,<br><br>I would like to tell the way I found to (continue to) use Unison with Linux and Windows, with "strange" 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 /LOCAL_PATH_TO_MOUNT_TO cifs user,rw,uid=1000,gid=1000,umask=000,file_mode=0777,dir_mode=0777,iocharset=utf8,credentials=/root/.smbcredentials 0 0<br><div id="1eou" class="ArwC7c ckChnd">
<br>with "/root/.smbcredentials" file contents:<br><br>username=WINDOWS_USER_NAME<br>password=WINDOWS_USER_PASSWORD</div><br>Don'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 <<a href="mailto:unison@greggman.com">unison@greggman.com</a>>:<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>
> 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>
</div><div class="Ih2E3d">> Sent: Monday, June 16, 2008 10:26:26 PM<br>
> Subject: Re: [Unison-hackers] Unicode names on Windows<br>
><br>
</div><div class="Ih2E3d">> ----- Original Message ----<br>
> > From: Ralph Lehmann<br>
</div><div><div></div><div class="Wj3C7c">> > 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 file name <br>
> > >> > is an old one, but I can't figure the problem is still 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 / Windows <br>
> > >> > XP, and of course files Chinese characters in files ...)<br>
> > > No, unison does not work with unicode file names. It's not unison's fault,<br>
> > > it's that it only runs on Windows, AFAIK, through the unix 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 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>
</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'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>