MacOSX is using UNIX line ending since more than 10 years-ago.

In modern computers, there are two options:

Unix/MacOSX: LF
Windows: CR-LF

I would not see it as a problem that fossil changed line-endings if it
was disabled by default and it could be enabled with something similar
to:

fossil setting ascii-glob "*.c,*.h"

Another thing that would be a bonus for cross-platform development
would be to change the encoding of the text files. In modern Linux it
is utf-8. And in modern Windows, it is a code page that depends on the
country but it is different from utf-8

I understand that it is more reasonable to implement in a SCM only the
line-ending change, but I wanted to write the encoding problem just
for the record.


Regards

  RR




2011/4/7  <sky5w...@gmail.com>:
> I would be immensely confused if my SCM was modifying the contents of
> my source code and/or support documents.
> Given that MacOS has yet another EOL = [CR], it is better for your own
> code to manage distribution effects.
> Just my opinion.
>
> -Steve
>
> On Thu, Apr 7, 2011 at 11:54 AM, Martin Gagnon <eme...@gmail.com> wrote:
>> I know this new feature. But I'm really talking about converting the line 
>> ending, for cross platform development issue.
>>
>> --
>> Martin
>>
>> Le 2011-04-07 à 10:43, Clark Christensen <cdcmi...@yahoo.com> a écrit :
>>
>>> I'm using fossil version [1d93222627] 2011-03-01 19:04:32 UTC
>>>
>>> With this version, Fossil warns about CRLF line ends on commit, and allows 
>>> me to commit anyway, or abort and fix.
>>>
>>> This is a good option for me.  Some files are OK with CRLFs and others are 
>>> not.  I like being able to choose.
>>>
>>>  -Clark
>>>
>>>
>>>
>>> ----- Original Message -----
>>> From:Martin Gagnon <eme...@gmail.com>
>>> To:Fossil Users Mailing List <fossil-users@lists.fossil-scm.org>
>>> Cc:
>>> Sent:Thursday, April 7, 2011 4:11 AM
>>> Subject:[fossil-users] CRLF conversion on windows
>>>
>>> Hi, Is there any plan for CRLF conversion under windows?
>>>
>>> This would be very usefull for cross platform projects. Especially
>>> when using Visual Studio on the Windows side, which silently add CRLF
>>> line ending on a LF only file which give you a mixed line ending file
>>> (got bunch of ^M when editing files with Vim after).
>>>
>>> it could convert text file from CR-LF to LF when committing and the
>>> oposite on checkout, so this would always keep LF line ending on
>>> repository and the local checkout on windows would have CR-LF line
>>> ending text file. Just like does Git and CVSNT (using Tortoise CVS at
>>> least).
>>>
>>> Of course this might be dangerous for data corruption when some binary
>>> file are flag as text file, but this kind of feature would be off by
>>> default for sure.
>>>
>>> --
>>> Martin
>>> _______________________________________________
>>> fossil-users mailing list
>>> fossil-users@lists.fossil-scm.org
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>>
>>> _______________________________________________
>>> fossil-users mailing list
>>> fossil-users@lists.fossil-scm.org
>>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>> _______________________________________________
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to