From: Segher B. <se...@ke...> - 2010-12-04 04:34:32
|
>>> Classic "more" does not work correctly. "cat" does not work. > > I just tried them now against a CRLF source file. I don't see any > problems. > What doesn't work for you? (sys-apps/util-linux-2.17.2 , > sys-apps/coreutils-8.5 , respectively) I checked the sourcefile with > hexdump -C |less for 0D 0A, just to be sure that the test was valid. Your "more" is just a symlink to "less". "Real" more will show a ^M. I cannot actually think how cat would do the "wrong" thing here; I thought I remembered it messing up, maybe it doesn't. >>> (when you have unicode on the first line, in some cases, >>> for example)). > > Ok, I admit unicode is not really a concern for me. I can see how it > would > be for other people. People use it to write their name, like in the copyright message, which usually is at the start of the file. >>> "grep" does not work. > > How so? It works for me. Again, just tried it, and it found what I > searched on. (sys-apps/grep-2.5.4-r1) grep 'something$' will not work because it considers the CR as a normal character. >>> Won't notepad mutilate all files with a UTF marker at the start? > > I have no idea. Never been a concern to me. I don't think Unicode > belongs > in source code, anyway. Those markers are not valid UTF, and I'm told notepad writes them all the time. I have no idea, I don't use mswindows. In the unix world, almost everyone uses UTF-8 these days, not ASCII or 8859-1 or things like that. >>> It sounds to me like the default config of msysgit should work fine for >>> you. > > Meaning specifically which settings of autocrlf and safecrlf? I don't really know. I'll ask some people from other projects that have mswindows users. > Keep in mind my configuration was working just fine for 7-8 months until > the > August .gitattributes patch came along. That's a pretty compelling argument that that patch was a mistake. But I'd like to hear more other people as well; let's solve this once and for all, not ping-pong between twenty different versions that all do not work for someone :-) Segher |