[Cuis] About cr/lf issues in MSWindows

H. Hirzel hannes.hirzel at gmail.com
Wed Jan 23 04:28:06 CST 2013


Hello Juan

Thank you for your feedback about not changing the default github
client settings in MSWindows as CRLF is concerned. I understand that
there are no problems if I edit text files in Cuis only. I have not
used Cuis so far for text editing. Actually a good reminder to start
doing so (see forthcoming separate mail of today).

So far I have not bothered either but as I have started to file in
*.mcz files from Squeak the paragraph marks have become an issue.

But as I have noted previously in this thread as soon as I save then
the package as a *.pck.st file it is fine again. So as of now no need
for action for this.

However I still keep the references about cr/lf treatment in github
which Angel has sent to the list  in case of need.

Regards
Hannes

On 1/23/13, Juan Vuletich <juan at jvuletich.org> wrote:
> Hi Hannes,
>
> In my experience, to use GitHub with Cuis, I didn't have to tweak
> anything at all. All I do is to edit my files with Cuis, so I never
> introduce CR characters.
>
> Cheers,
> Juan Vuletich
>
> H. Hirzel wrote:
>> Thank you Angel, as our github expert in residence for these links
>> about line end problems with github.
>>
>> The reference
>> http://timclem.wordpress.com/2012/03/01/mind-the-end-of-your-line/ gives
>>
>> "Git’s primary solution to all this is to specify that LF is the best
>> way to store line endings for text files in a Git repository’s object
>> database. "
>>
>> and
>>
>> "
>> core.autocrlf = false
>>
>> – This is the default, but most people are encouraged to change this
>> immediately. The result of using false is that Git doesn’t ever mess
>> with line endings on your file
>> "
>>
>>
>>
>> I use Windows 7 with a git bash shell.
>>
>> I had not done yet a change so I do now
>>
>>     git config --global core.autocrlf true
>>
>> on my MINGW32 git bash shell , right?
>>
>> Is this enough for Cuis/Squeak/Pharo use? Or do I need to go for a
>> .gitattributes file?
>>
>> Kind regards
>> Hannes
>>
>> On 1/22/13, Angel Java Lopez <ajlopez2000 at gmail.com> wrote:
>>
>>> Ah! This is a discussion about text files in repo, no text file
>>> processing
>>> in Smalltalk.
>>>
>>> Then:
>>> http://stackoverflow.com/questions/170961/whats-the-best-crlf-handling-strategy-with-git
>>> https://help.github.com/articles/dealing-with-line-endings
>>> and specially
>>> http://timclem.wordpress.com/2012/03/01/mind-the-end-of-your-line/
>>>
>>> Angel "GitHub" Lopez ;-)
>>>
>>> On Tue, Jan 22, 2013 at 5:36 AM, H. Hirzel <hannes.hirzel at gmail.com>
>>> wrote:
>>>
>>>
>>>> Hello Juan
>>>>
>>>> On 1/22/13, Juan Vuletich <juan at jvuletich.org> wrote:
>>>>
>>>>> Germán Arduino wrote:
>>>>>
>>>> ..
>>>>
>>>>>> Just noticed also that in Windows I have also the bad formatting with
>>>>>> the cr/lf as if they were not converted.
>>>>>>
>>>>>>
>>>>>>
>>>>> I use Cuis on Mac and Windows all the time. I never had any issue with
>>>>> cr/lf. Maybe you're editing files in notepad.exe?
>>>>>
>>>> Yes, I do that sometimes, e.g. to edit README.md files. I realize that
>>>> after some editing operations  lines are double spaced.
>>>>
>>>>
>>>> Or transferring them
>>>>
>>>>> with a "smart" tool that thinks it must do conversions?
>>>>>
>>>> An alternative tool I use is Notepad++
>>>> http://www.notepad-plus-plus.org/
>>>>
>>>>
>>>> In any case,
>>>>
>>>>> prepare a list of steps to reproduce the problems you see, and I'll
>>>>> take
>>>>> a look (as usual).
>>>>>
>>>> Yes
>>>>
>>>>
>>>>> Cheers,
>>>>> Juan Vuletich
>>>>>
>>>> Regards
>>>> Hannes Hirzel
>>>>
>>>> _______________________________________________
>>>> Cuis mailing list
>>>> Cuis at jvuletich.org
>>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>>
>>>>
>>
>> _______________________________________________
>> Cuis mailing list
>> Cuis at jvuletich.org
>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>
>
>
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>




More information about the Cuis mailing list