111 reputation
114
bio website
location
age
visits member for 2 years, 10 months
seen Jan 3 '13 at 9:19

Jan
3
comment How are \n and \r handled differently on Linux and Windows?
Same line of questioning: do programming languages recognize \n\r and \n as being the same? For example, if I were parsing a text file that was edited on someone else's PC and contained both the Linux and Windows version of line breaks, would performing a preg_match for \n and \n\r give me different results?
Jan
3
comment How are \n and \r handled differently on Linux and Windows?
Ignacio, those acronyms have no meaning to me. What do you call this :/? OH... LINE FEED and CARRIAGE RETURN. Thanks, sleske.
Jan
3
comment How are \n and \r handled differently on Linux and Windows?
So far I know that \r\n is okay in Windows but \n\r is not, and I remember that because \r\n is an acronym for registered nurse. I also hear that \n is what people use in Linux and \r isn't used alone for the same purpose as \r\n. \r is used in really old MacOS. I haven't verified these facts, though.