File Outs: Can We Have Unix Line Endings?
Any reason not to? Tedious to continually do "%s/\r/\r/g"s on Mac to fix: TextStream subclass:^M#UCTextStream^MinstanceVariableNames: ''^MclassVariableNames: ''^MpoolDictionaries: ''^Mcategory: 'UFFA-Core'!^M! ----- Cheers, Sean -- View this message in context: http://forum.world.st/File-Outs-Can-We-Have-Unix-Line-Endings-tp4769721.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
I have crcat crvi crmore crdiff crtolf lftocr etc... Eliot (phone) On Jul 23, 2014, at 7:17 PM, "Sean P. DeNigris" <sean@clipperadams.com> wrote:
Any reason not to? Tedious to continually do "%s/\r/\r/g"s on Mac to fix: TextStream subclass:^M#UCTextStream^MinstanceVariableNames: ''^MclassVariableNames: ''^MpoolDictionaries: ''^Mcategory: 'UFFA-Core'!^M!
----- Cheers, Sean -- View this message in context: http://forum.world.st/File-Outs-Can-We-Have-Unix-Line-Endings-tp4769721.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
AFAIK, Cuis has switched to LF for simpler git integration. 2014-07-24 8:33 GMT+02:00 Eliot Miranda <eliot.miranda@gmail.com>:
I have crcat crvi crmore crdiff crtolf lftocr etc...
Eliot (phone)
On Jul 23, 2014, at 7:17 PM, "Sean P. DeNigris" <sean@clipperadams.com> wrote:
Any reason not to? Tedious to continually do "%s/\r/\r/g"s on Mac to fix: TextStream subclass:^M#UCTextStream^MinstanceVariableNames: ''^MclassVariableNames: ''^MpoolDictionaries: ''^Mcategory: 'UFFA-Core'!^M!
----- Cheers, Sean -- View this message in context: http://forum.world.st/File-Outs-Can-We-Have-Unix-Line-Endings-tp4769721.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
On 24 Jul 2014, at 07:17, Sean P. DeNigris <sean@clipperadams.com> wrote:
Any reason not to? Tedious to continually do "%s/\r/\r/g"s on Mac to fix: TextStream subclass:^M#UCTextStream^MinstanceVariableNames: ''^MclassVariableNames: ''^MpoolDictionaries: ''^Mcategory: 'UFFA-Core'!^M!
Yes, the default line endings should be unix for everything, this would simplify life a lot. Marcus
Why you cannot detect OS and then format accordingly? Hernán 2014-07-24 2:17 GMT-03:00 Sean P. DeNigris <sean@clipperadams.com>:
Any reason not to? Tedious to continually do "%s/\r/\r/g"s on Mac to fix: TextStream subclass:^M#UCTextStream^MinstanceVariableNames: ''^MclassVariableNames: ''^MpoolDictionaries: ''^Mcategory: 'UFFA-Core'!^M!
----- Cheers, Sean -- View this message in context: http://forum.world.st/File-Outs-Can-We-Have-Unix-Line-Endings-tp4769721.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
On Thu, Jul 24, 2014 at 9:32 AM, Hernán Morales Durand <hernan.morales@gmail.com> wrote:
Why you cannot detect OS and then format accordingly?
OSPlatform current lineEnding -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
2014-07-24 2:17 GMT-03:00 Sean P. DeNigris <sean@clipperadams.com>:
Any reason not to? Tedious to continually do "%s/\r/\r/g"s on Mac to fix: TextStream subclass:^M#UCTextStream^MinstanceVariableNames: ''^MclassVariableNames: ''^MpoolDictionaries: ''^Mcategory: 'UFFA-Core'!^M!
Yes please. And have an option to switch to any other ending for those who want it that way for any uncomprehensible reason :P. But Unix by default. Esteban A. Maringolo
There is no need to choose a default because before the file out is executed, one could check the which OS the system is running. And then switch to the proper line ending. Is just a one-liner Smalltalk os isUnix 2014-07-24 11:12 GMT-03:00 Esteban A. Maringolo <emaringolo@gmail.com>:
2014-07-24 2:17 GMT-03:00 Sean P. DeNigris <sean@clipperadams.com>:
Any reason not to? Tedious to continually do "%s/\r/\r/g"s on Mac to fix: TextStream subclass:^M#UCTextStream^MinstanceVariableNames: ''^MclassVariableNames: ''^MpoolDictionaries: ''^Mcategory: 'UFFA-Core'!^M!
Yes please.
And have an option to switch to any other ending for those who want it that way for any uncomprehensible reason :P. But Unix by default.
Esteban A. Maringolo
Hernán Morales Durand wrote
There is no need to choose a default...
git was mentioned (which is my use-case too). Since the community is using it more and more, it might make sense to have a default, no? ----- Cheers, Sean -- View this message in context: http://forum.world.st/File-Outs-Can-We-Have-Unix-Line-Endings-tp4769721p4770... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
I see. I don't know the Git use-case. I was suggesting OS detection for the file-out from image to local disk. But I use Windows now, if you set Unix line ending that would mean I (or anyone using Windows) have to unix2dos for every pull or fetch from any Git repository commited from Pharo? Hernán 2014-07-25 4:42 GMT-03:00 Sean P. DeNigris <sean@clipperadams.com>:
Hernán Morales Durand wrote
There is no need to choose a default...
git was mentioned (which is my use-case too). Since the community is using it more and more, it might make sense to have a default, no?
----- Cheers, Sean -- View this message in context: http://forum.world.st/File-Outs-Can-We-Have-Unix-Line-Endings-tp4769721p4770... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
2014-07-25 3:57 GMT-03:00 Hernán Morales Durand <hernan.morales@gmail.com>:
There is no need to choose a default because before the file out is executed, one could check the which OS the system is running. And then switch to the proper line ending. Is just a one-liner
Okay, OS line ending by default, but what I want is a way to override current setting and use the one I like. If you work both in Linux and Windows, normally you choose only one (usually linux). If you install git on Windows, it will ask you if you want to use OS default or convert everything to a particular line ending when pushing changes. Regards, Esteban A. Maringolo
Agree. Mac switched to Unix line endings long ago Le 24 juil. 2014 07:18, "Sean P. DeNigris" <sean@clipperadams.com> a écrit :
Any reason not to? Tedious to continually do "%s/\r/\r/g"s on Mac to fix: TextStream subclass:^M#UCTextStream^MinstanceVariableNames: ''^MclassVariableNames: ''^MpoolDictionaries: ''^Mcategory: 'UFFA-Core'!^M!
----- Cheers, Sean -- View this message in context: http://forum.world.st/File-Outs-Can-We-Have-Unix-Line-Endings-tp4769721.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (8)
-
Ben Coman -
Damien Cassou -
Eliot Miranda -
Esteban A. Maringolo -
Hernán Morales Durand -
Marcus Denker -
Nicolas Cellier -
Sean P. DeNigris