Slashdot Mirror


Windows Notepad Finally Supports Unix, Mac OS Line Endings (theregister.co.uk)

Microsoft's text editing app, Notepad, which has been shipping with Windows since version 1.0 in 1985, now supports line endings in text files created on Linux, Unix, Mac OS, and macOS devices. "This has been a major annoyance for developers, IT Pros, administrators, and end users throughout the community," Microsoft said in a blog post today. The Register reports: Notepad previously recognized only the Windows End of Line (EOL) characters, specifically Carriage Return (CR, \r, 0x0d) and Line Feed (LF, \n, 0x0a) together. For old-school Mac OS, the EOL character is just Carriage Return (CR, \r, 0x0d) and for Linux/Unix it's just Line Feed (LF, \n, 0x0a). Modern macOS, since Mac OS X, follows the Unix convention. Opening a file written on macOS, Mac OS, Linux, or Unix-flavored computers in Windows Notepad therefore looked like a long wall of text with no separation between paragraphs and lines. Relief arrives in the current Windows 10 Insider Build.

Notepad will continue to output CRLF as its EOL character by default. It's not changing its stripes entirely. But it will retain the formatting of the files it opens so users will be able to view, edit and print text files with non-Windows line ends. Microsoft has thoughtfully provided an out for Windows users counting on the app's past inflexibility: the new behavior can be undone with a registry key change.

176 of 291 comments (clear)

  1. Notepad++ ? by Pascal+Sartoretti · · Score: 5, Interesting

    All users caring about line endings had probably migrated to Notepad++ 10 years ago, right ?

    1. Re: Notepad++ ? by DonkeyG5 · · Score: 1

      More like 14 years ago.

    2. Re:Notepad++ ? by thegarbz · · Score: 1

      All users caring about line endings had probably migrated to Notepad++ 10 years ago, right ?

      And yet this is a godsend when working on other people's machines which *don't* have Notepad++

      Even wordpad sucks these days.

    3. Re:Notepad++ ? by fisted · · Score: 5, Funny

      it is a must have on your usb flash drive of tools and utilities

      Lol, found the Windows admin.

    4. Re:Notepad++ ? by Mysund · · Score: 2

      Next year Microsoft will release their new feature swollen text editor: Notepad#.

    5. Re:Notepad++ ? by thegarbz · · Score: 4, Insightful

      it is a must have on your usb flash drive

      It's faster to download it and run it as a portable than it is to mail a USB drive to the computer you're supporting.

      Know what's even faster? Having the default text editor able to display text correctly.

    6. Re:Notepad++ ? by Austerity+Empowers · · Score: 1

      All users caring about line endings had probably migrated to Notepad++ 10 years ago, right ?

      Creating a never-ending cycle. Notepad is the only editor you can count on in a workflow, as a result a dependency is built in to a lot of windows apps, and CRLF leaks all over. While on linux/bsd/osx most things obey the EDITOR ev, allowing the user to pick his favorite. As a result if Apple dropped/changed TextEdit, many people may not notice, but if MS drops or changes Notepad, major LOB apps are going to break. And Linux...forget it, the only editor you can rely on being there is maybe vi, and building a dependence on that will start WWIII.

      MS needs to throw out their OS and start over if they want to play in this millenia. Since they've offshored all their real R&D, the better option is just to embrace linux and throw their UI over it.

    7. Re:Notepad++ ? by moronoxyd · · Score: 1

      If you're required to edit plaintext on other people's computers - I feel sorry for you.

      Not needed for linux setups - you ssh in (or sshmount their fs) and do all work from your own office/computer. No getting used to their keyboard setup or whatever.

      Well, it's great if that works in your setup. But you don't always have complete control.

      We have some 10.000 Linux server appliances running within our customers networks. We don't have direct access to most of those. So if we need to troubleshoot anything, we need to ask our customers to grant us access to their local network via TeamViewer or such like and then connect with putty (as practically everyone uses Windows).

    8. Re:Notepad++ ? by arth1 · · Score: 1

      And yet this is a godsend

      Is it, though? I think it is worse than nothing.
      The problem is that it will now read LF, but any new line you put into the text will still have a CR+LF.
      So earlier, when you opened a Unix style text file in Notepad, you would notice that it was LF-based because everything was on one line. So you would open it with Wordpad or something else instead.
      Now, on the other hand, you will open it, see nothing amiss, modify it, and save it, and because the new lines you made will have CR+LF, it may break the system that then reads it that expects LF separation throughout the document.

      That's worse than nothing in my opinion. A typical Microsoft "solution".

    9. Re:Notepad++ ? by Anonymous Coward · · Score: 1

      MS needs to throw out their OS and start over if they want to play in this millenia. Since they've offshored all their real R&D, the better option is just to embrace linux and throw their UI over it.

      And that will go over about as well as the Netscape Communicator 4 to Netscape 6. Need another example? Microsoft's XP to Vista rewrite. That didn't turn out so badly for MS because they're the only game in town, and the cost of hardware - especially RAM - fell through the floor. Now, would MS Linux automatically beat Ubuntu or Fedora or Arch - No, not necessarily, Especially when you consider that MS Linux will be 1) Non-free, and each copy has to have it's own license. You want it to interact with MS Exchange/Office 365? You'll need a CAL for that, too, in addition to the machine license. 2) Non-editable/No source, so if MS doesn't give you a shim for proprietary Nvidia cards, you are SoL, Problem with the Weirdnix userland? sorry, cannot help you and 3) Spyware - reporting all sorts of telemetry back via the Cortana service. Finally (and this is a biggy) 4) backwards compatibility - what is the point of Windows if you must re-buy all the applications? People would switch en-mass to Mac or LInux. Yes, there's some die-hard Windows zealots out there (see neowin.net for instance, or /r/windows on Reddit), but IMHO, if you take their applications away, users will have zero loyalty to you.

    10. Re:Notepad++ ? by thegarbz · · Score: 1

      The problem is that it will now read LF, but any new line you put into the text will still have a CR+LF.

      So don't edit python scripts. Seriously though if you're doing something sensitive to CR vs CR+LF then Notepad is the wrong thing to use to edit a file and you'll know it's wrong too. The biggest problem with CR vs CR+LF is being unable to read files (a universal problem) and not that the LF will break the system (a problem that affects an incredibly minor set of possible scenarios exposed to an incredible minor part of the userbase and a part of the user base that is a) most equipped to handle it, and b) likely refuses to use something like notepad anyway ).

      That's worse than nothing in my opinion. A typical Microsoft "solution".

      Sounds like your opinion may be moderated by applying the genetic fallacy to the solution.

    11. Re:Notepad++ ? by timftbf · · Score: 1

      The first tech book on Unix I owned had a section on how you couldn't rely on this newfangled "vi" thing being available, or working from the console, on every system, and both taught and suggested as a default "ed", which is available everywhere.

      I have recovered a very minimally-booting system with "ed" in anger. I don't want to have to do it again any time soon.

      (Also had a great chapter on the joys of booting, and how to use repeated dcheck / icheck iterations to repair filesystems - unless you were on a *really* cutting-edge system that had the new "fsck" utility!)

    12. Re:Notepad++ ? by jittles · · Score: 1

      All users caring about line endings had probably migrated to Notepad++ 10 years ago, right ?

      Nope. I just don’t open up anything but Word documents on my Windows machine. Visual Studio already handles the line endings, though it does always try to convert to Windows line endings.

    13. Re: Notepad++ ? by Baloo+Uriza · · Score: 1

      I've been suggesting they do that for 20 years now.

      --
      Furries make the internet go.
    14. Re: Notepad++ ? by Anonymous Coward · · Score: 1

      You misread the article.

    15. Re:Notepad++ ? by thegarbz · · Score: 1

      That's worse than nothing in my opinion. A typical Microsoft "solution".

      This typical Microsoft "solution": "New files created within Notepad will use Windows line ending (CRLF) by default, but it will now be possible to view, edit, and print existing files, correctly maintaining the file’s current line ending format."

      It actually is funny to see prejudice just blow up in people's faces.
      https://blogs.msdn.microsoft.c...

    16. Re:Notepad++ ? by fisted · · Score: 1

      Don't get me wrong, I too have to fiddle with a windows machine every now and then. I still don't see a need to carry around a usb drive with tools, I only need one tool anyway (an ssh client) and I told our actual windows guy to roll out putty by default to the clients, problem solved

    17. Re:Notepad++ ? by fisted · · Score: 1

      Yes? Both other relevant (or semi-relevant) desktop OS would be Apple Windows and GNU Windows, both ship an ssh client by default last time I checked.

    18. Re:Notepad++ ? by Tenebrousedge · · Score: 2

      Well yeah actually, because with Unix you either SSH into the box remotely, or your toolkit consists of a single liveUSB. Real Unix Admins(tm) can restore the whole system from deletion with a half-working copy of cat and no filesystem, of course.

      --
      Those who advocate genocide deserve every protection afforded by law, and none afforded by common human decency.
    19. Re: Notepad++ ? by datavirtue · · Score: 1

      I hope to fuck that guy was trolling.

      --
      I object to power without constructive purpose. --Spock
    20. Re:Notepad++ ? by spitzak · · Score: 1

      Virtually every program in the world handles just LF or CR+LF the same (some may think the CR is a whitespace before the LF, but this does not affect their behavior). Even on Linux, due to the need to deal with files from Notepad. Therefore the combined output of notepad will work. What this does mean is that output from other programs is viewable in notepad.

      I agree it would be nice if they just made it output LF only, but the reason is so they can get rid of "text mode" file I/O.

    21. Re:Notepad++ ? by Billly+Gates · · Score: 1

      In 2018, Microsoft VS Code editor and Atom.IO are easy to use and very powerful electron based text editors and are free and multiple platform. No you did not misread that as VS Code editor is not Visual Studio but a fork of Atom.IO.

    22. Re: Notepad++ ? by brantondaveperson · · Score: 1

      Yes, I'm afraid you are. Configuration should be centrally managed, but alot of the time an infrastructure will grow past the point at which this could have been cheaply implemented, and will wind up in a situation like you describe, and will eventually need to be rebuilt from the ground up.

    23. Re:Notepad++ ? by Gollent · · Score: 1

      Notepad++ definitely the best platform.

  2. Mac OS and macOS? by MichaelSmith · · Score: 1

    Wow. How are they different?

    1. Re:Mac OS and macOS? by Carewolf · · Score: 1

      No, MacOS is ancient, macOS is new..ish.

      Yeah..

    2. Re:Mac OS and macOS? by Yaztromo · · Score: 2, Informative

      By "Mac OS", they mean versions of Apple's operating system prior to version 10.0.0

      By "macOS", they mean all versions since (and including) 10.0.0.

      (Apple renamed Mac OS X to just "macOS" a year or two ago, to better align with "iOS", "tvOS", and "watchOS" naming, as well as to move away from marketing the OS as "version 10", which they had already done for over 15 years).

      To confuse matters somewhat, early versions of macOS (OS X) could run Mac OS software that used the old-style CR-only line terminator, so the line demarcating the change isn't exactly clean.

      Yaz

    3. Re:Mac OS and macOS? by Anonymous Coward · · Score: 1

      Actually macOS is Apple's current official name for what used to be called MacOS X. Have a look at their current page for High Sierra and it's got macOS everywhere. The older non-Unix OS was referred to as MacOS, so TFA was correct.

      The two do actually have different line endings as well. macOS, like typical Unix uses a linefeed, while the old MacOS used only a carriage return. I have no idea why Notepad would add support for old MacOS line endings today though since Apple hasn't supported them for over 15 years now.

    4. Re:Mac OS and macOS? by MichaelSmith · · Score: 1

      And did the line endings change between < 10.0.0 and >= 10.0.0?

    5. Re: Mac OS and macOS? by DonkeyG5 · · Score: 1

      âoeFunâ fact: in 2012 they changed Max OS X name to OS X and then, in 2016, they changed the name to macOS.

    6. Re:Mac OS and macOS? by cstacy · · Score: 1

      By "Mac OS", they mean versions of Apple's operating system prior to version 10.0.0

      By "macOS", they mean all versions since (and including) 10.0.0.

      (Apple renamed Mac OS X to just "macOS" a year or two ago, to better align with "iOS", "tvOS", and "watchOS" naming, as well as to move away from marketing the OS as "version 10", which they had already done for over 15 years).

      To confuse matters somewhat, early versions of macOS (OS X) could run Mac OS software that used the old-style CR-only line terminator, so the line demarcating the change isn't exactly clean.

      Yaz

      iConfused

    7. Re:Mac OS and macOS? by arglebargle_xiv · · Score: 4, Funny

      And mAcOs is kinda lumpy, while MacoS is either a suspension bridge or a Filipino meat dish.

    8. Re:Mac OS and macOS? by Bongo · · Score: 1

      You can export a tab delimited file from FileMaker today, and still get CRs.
      It's like, cute and quaint.

      Ah, fond memories of booting Mac OS X Cheetah (or was it public beta?) on a Quadra 8500 with 130 odd MB of RAM, and it not crashing the whole system whenever an app crashed.

    9. Re:Mac OS and macOS? by Xenolith0 · · Score: 1

      MACOs are a specially trained combat wing of the Earth military.

    10. Re:Mac OS and macOS? by Anonymous Coward · · Score: 1

      "Mac OS" does not exist.
      There's:
      MacOS (old OS, sometimes called "classic")
      Mac OS X (unix)
      macOS (same as Mac OS X, but new name to fit in line with iOS, tvOS, watchOS)

    11. Re:Mac OS and macOS? by bn-7bc · · Score: 1

      Neice to see another Star-trek enterprise fan have a nice day, Backl on topic, nice to see notepad catching up

    12. Re:Mac OS and macOS? by mfnickster · · Score: 1

      Cheetah required a minimum of a G3, and upgrade cards were not supported - though I vaguely remember a shim system extension that would allow you to boot it on unsupported G3 Macs...

      After trying MkLinux and Mac OS X Public Beta, I got a Quadra 800 on eBay and installed A/UX 3.0, which I really liked!

      --
      "Slow down, Cowboy! It has been 3 years, 7 months and 26 days since you last successfully posted a comment."
    13. Re:Mac OS and macOS? by Bongo · · Score: 1

      Ah yes, thanks!

  3. Why? by Anonymous Coward · · Score: 1

    For years I've used notepad just for this reason: remove and drop all unix lineendings. That way I knew I never ended up with a mixed-line ending document.

    1. Re:Why? by TheRealQuestor · · Score: 1

      same here. Good thing you can just copy notepad.exe from an older version and run it on the newer Win10 to be able to use it for that ::) it doesn't have any real dll depends and is standalone so it works as is.

    2. Re:Why? by fisted · · Score: 1

      Good thing you can just read TFA and learn there's an option to retain the old behavior

    3. Re:Why? by TheRealQuestor · · Score: 1

      Good thing you can just read TFA and learn there's an option to retain the old behavior

      I "could" RTFA but then I would not be able to post something stupid. Sigh. I'm just gunna fire up RS5 and play around with it instead :)

    4. Re:Why? by jabuzz · · Score: 1

      "man unix2dos" and for good measure "man dos2unix"

  4. Re: Odd by Monster_user · · Score: 1

    Ubuntu is now an officially supported part of Windows.

  5. Why has it been an annoyance? by 91degrees · · Score: 4, Informative

    Notepad is a small simple text editor that exists because occasionally you might need to edit some text files (typically for config files or something). These will be in a Windows friendly text format. It doesn't pretend to do anything remotely sophisticated.

    If you want to do something more complex then download a non-minimal text editor. There are loads available for free.

    1. Re:Why has it been an annoyance? by Carewolf · · Score: 1

      Imagine those config files are shared with non-windows computers.

    2. Re:Why has it been an annoyance? by Yaztromo · · Score: 5, Interesting

      Notepad is a small simple text editor that exists because occasionally you might need to edit some text files (typically for config files or something). These will be in a Windows friendly text format. It doesn't pretend to do anything remotely sophisticated.

      That's great if you're the one running the editor and doing the editing.

      What's not so great is when you give a co-worker a bash script, and they open it in Notepad, and then complain to you about all the extra spacing -- forcing you to waste a ton of breath explaining why it's not a problem with the text file, but an issue with their editor.

      I once had to send a developer at my employer a SQL script intended to be run on Linux, and they did just this. It was unbelievable how long it took me to finally convince them that Notepad was the issue. And it wasn't just the double-spacing; they early had a fit because the file showed up as "ANSI" encoding in Notepad, whereas the spec said the file had to be UTF-8. So not only did I have to convince them (with lots of references) that Notepad was rendering CR/LF as two lines whereas UNIX systems treat them as a single line ending pair, but then I ALSO had to waste a lot of time convincing them that not only is there no such encoding standard as "ANSI" (a very long-standing bug in Notepad Microsoft has never got around to fixing), but that ASCII and UTF-8 are identical for values between 0x00 and 0x7F (which every byte in the document were within).

      It was extremely annoying, because even with lots of links to references as to why they shouldn't be using Notepad for UNIX text files in the first place (and why you can't trust its encoding field), in the end I couldn't convince them. Our DBA eventually had to tell them the file was just fine as-is. And sadly, this wasn't the first person I've had this problem with.

      As such, as a non-Windows user I'm rather happy for this change. I can't believe how many developers I run into who have no notion of line termination or the actual details of encoding standards, and who simply trust whatever Notepad tell them. Hopefully it will save me some aggravation in the future.

      Yaz

    3. Re:Why has it been an annoyance? by thegarbz · · Score: 1

      Notepad is a small simple text editor that exists because occasionally you might need to edit some text files (typically for config files or something).

      Just because it's simple and occasionally used doesn't mean it can't be annoying. Also just because there are alternatives doesn't mean I'm going to install them on every computer I touch (or even can install them). ... And Wordpad is now a mess.

    4. Re:Why has it been an annoyance? by ET3D · · Score: 1

      I've often encountered downloaded text files which aren't Windows-formatted. While there are many alternatives that do handle line ends correctly (the most readily available in Windows is WordPad), Notepad is a default for various file types and this added support will certainly help.

      This really isn't something basic, not something sophisticated, and there's no particular reason not to include it. While Microsoft is very late to the party, it's a definite case of 'better late than never'.

    5. Re:Why has it been an annoyance? by phantomfive · · Score: 1

      What happened to Wordpad? I used to use it fairly often.

      --
      "First they came for the slanderers and i said nothing."
    6. Re:Why has it been an annoyance? by fisted · · Score: 2

      Fuck BOMs

    7. Re:Why has it been an annoyance? by Anonymous Coward · · Score: 1

      Compliant to what?
      The UTF-8 standard recommends to not include a BOM.

    8. Re:Why has it been an annoyance? by thegarbz · · Score: 1

      Nothing really. It just isn't the program it used to be https://en.wikipedia.org/wiki/...

      You can change some settings force it to look like normal, live with the ribbon, but more fundamentally: It isn't the default text editor. None of this is really a problem, it's just irritating: Help some, open explorer, double click, "crap", close notepad, right click, open in word pad, change the view mode and the wordwrap settings, keep doing what it is you were doing in the first place.

      Notepad not screwing up every file you use it to read is just one less hassle. It doesn't solve an unsolvable problem.

    9. Re:Why has it been an annoyance? by 140Mandak262Jamuna · · Score: 1

      Reminds me of the time I had to convince a Economics professor. It was a three level course, HS307 or something, Intro to Economics. The solution to the test problem was the equation of a straight line. I gave it in y = m * x + c form. His answer key had this in A x + B y + C = 0 form. Would not accept any of my explanations. I said, " 0.5, 1/2 and 50% are all the same thing" and he had fits, he claimed they are all different. He grudgingly offered partial credit. I had to walk him to a math prof's office and have him convince this dude.

      --
      sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
    10. Re:Why has it been an annoyance? by mjwx · · Score: 1

      Notepad is a small simple text editor that exists because occasionally you might need to edit some text files (typically for config files or something) on a machine that is not yours so doesn't have Notepad++ installed. These will be in a Windows friendly text format. It doesn't pretend to do anything remotely sophisticated.

      If you want to do something more complex then download a non-minimal text editor. There are loads available for free.

      TFTFY. If you're regularly editing text files, Notepad++ (or a contemporary) is essential. Notepad is for when you don't have anything like Notepad++

      --
      Calling someone a "hater" only means you can not rationally rebut their argument.
    11. Re:Why has it been an annoyance? by Anonymous Coward · · Score: 1

      None of that happened. Notepad does not render CRLF as two lines, and neither does Unix.. Notepad ignores single CRs and LFs. The text continues without a linebreak. Unix shows superfluous ^M symbols at the end of each line when a text file uses the CRLF convention instead of the Unix-typical LF only.

    12. Re:Why has it been an annoyance? by glenebob · · Score: 1

      You're correct about Notepad rendering CR/LF as a single break, but Unix is not a text editor. Notepad is the only editor I've used in modern times that cannot deal with mixed line breaks.

    13. Re:Why has it been an annoyance? by glenebob · · Score: 1

      Wordpad is not a text editor. It's a *choke* word processor, and quite easily even more bad at doing its job than Notepad is.

    14. Re:Why has it been an annoyance? by thegarbz · · Score: 1

      Well Microsoft can't fix stupid people. Look on the bright side, due to this issue someone learned something, even brighter would be if you consulted at the time, because then that also translated to billable hours :)

    15. Re:Why has it been an annoyance? by tepples · · Score: 1

      Perhaps the partial credit was that you couldn't recite or improvise a proof that B for any slope-intercept form line is always negative 1.

      Proof:

      y = Ax + C
      y - y = Ax + C - y
      0 = Ax + (-1)y + C

    16. Re:Why has it been an annoyance? by goose-incarnated · · Score: 1

      Compliant programs write UTF-8 files with a 3byte BOM (marker) at the beginning of the file.

      No. Compliant programs *can* use the byte order mark but it's not required for compliance.

      --
      I'm a minority race. Save your vitriol for white people.
    17. Re:Why has it been an annoyance? by think_nix · · Score: 1

      nano does this as well, as well as vi now (vim , not lightweight) I wont mention emacs, well because.

    18. Re:Why has it been an annoyance? by spitzak · · Score: 1

      No they do not. The BOM is probably the biggest obstacle to getting I18N and Unicode working on Windows, and it is leaking into Linux from there as well.

      The BOM is a parser error for many programs that can handle UTF-8 fine. Even if you fix the parsers you have to deal with embedded BOM from concatenation, and you have to deal with other programs having (like the #! parser) not agreeing with you.

      Never ever ever write UTF-8 with a BOM unless you are copying a file with a BOM in it.

  6. CRLF is technically correct by Anonymous Coward · · Score: 5, Insightful

    You want the carriage to return and the paper moved up by one line, not print over the last line (CR only) or continue at the current position one line down (LF only). Imagine that, Microsoft doing something correctly.

    1. Re:CRLF is technically correct by Bert64 · · Score: 1

      When printing sure, but most text won't be printed and is just edited electronically. Using a single character makes more sense as it reduces file size, especially if you have short lines.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    2. Re:CRLF is technically correct by fisted · · Score: 1

      Where can I find this paper version of notepad you're talking about?

    3. Re:CRLF is technically correct by halivar · · Score: 1

      The deal for me is that, as an old MUD coder in the late 90's, I am so used to the VT100 convention that the Unix way of doing it baffles me. I'm too used to doing \n\r.

    4. Re:CRLF is technically correct by jabuzz · · Score: 1

      Even today it would make a difference on the web. This page that I am typing in is according to a combination of wget and wc 1213 lines long. That is 1.2KB less if using a LF formatted HTML file over a CR/LF formatted one. Multiply that by all the CR/LF formatted files being shoved around the internet and I would imagined it comes to many TB a day.

    5. Re:CRLF is technically correct by Registered+Coward+v2 · · Score: 5, Informative

      You want the carriage to return and the paper moved up by one line, not print over the last line (CR only) or continue at the current position one line down (LF only). Imagine that, Microsoft doing something correctly.

      It's a holdover from the old mechanical printer / typewriter days. Since the LF and CR were handled by separate mechanisms separate commands allowed controlling them independently when needed.

      While in general you wanted a CR and LF, they also had utility themselves. A LF allowed advancing paper without activating the CR mechanism if a CR was not needed, while a CR allows you to over print and blackout text, such as a password.

      --
      I'm a consultant - I convert gibberish into cash-flow.
    6. Re:CRLF is technically correct by Misagon · · Score: 1

      Specifically, it is a holdover from the Teletype Corporation telegraphs. Previous Murray telegraphs had used a single "Line" code for a new line.
      The Teletype machines were electro-mechanical and while a character could be typed relatively quickly, the printer's carriage return operation was slow.
      The "Line" code was split into two codes to allow the printer to keep up!

      --
      "We mustn't be caught by surprise by our own advancing technology" -- Aldous Huxley
    7. Re:CRLF is technically correct by kangasloth · · Score: 2

      It's not just a holdover: it's also a compromise after different OS builders tried to simplify things the same way without coordinating and whose arbitrary choices happened to conflict. Once you have unixy LF and macish CR in the wild, reviving the old CRLF admixture made an equally unhappy compromised. That compromise was baked into telnet and subsequent protocols. By the time Microsoft brought MS-DOS to market, CRLF looked like the sensible, standards-compliant choice.

      I am mostly summarizing the old EOLstory, which says it better.

    8. Re:CRLF is technically correct by Registered+Coward+v2 · · Score: 1

      Good points. It's interesting to see how technological solutions prior to the development of computers and OS impact and influence decision made in the new technology, sometimes minor and other times having greater impact.

      --
      I'm a consultant - I convert gibberish into cash-flow.
    9. Re:CRLF is technically correct by halivar · · Score: 1

      It's not a order of the characters that matters to me; as former email developer, I'm also used to standardizing on CRLF as per RFC. But there were enough non-standard clients out there that I was used to having to deal with either-or. What fucked it all up were those clients that only send bare LF's. "Be liberal in what you accept" except most of these were spam clients, anyhow.

    10. Re:CRLF is technically correct by pjwhite · · Score: 1

      Don't forget to add some NULLs (0x00) following the carriage return to give the carriage time to slide all the way back to the beginning before sending more text.

    11. Re:CRLF is technically correct by Solandri · · Score: 1

      Imagine that, Microsoft doing something correctly.

      I suspect it wasn't a matter of doing things correctly, but rather had more to do with the limitations of computer technology at the time. Unix was written in the 1970s, when RAM and storage space were measured in single digit kilobytes or less. Some developer probably counted how many rows of text there were in all the text files of code he had written, and figured out that ~3% of the memory and storage space would be wasted holding the extra byte in the CR/LF combo. So he shortened it to just LF.

      By the time DOS rolled out in 1981, 16-64 kB of RAM and 160 kB floppies were the norm. So DOS could afford to be more profligate with the space occupied by text files.

      These sorts of constraints on storage space and processing speed forced programmers of that era to resort to innovative shortcuts to save a little bit of space or time here or there.

    12. Re:CRLF is technically correct by spitzak · · Score: 1

      Wrong. Many printers and video terminals interpreted LF as doing both CR and LF. Nobody can rely on LF moving straight down, and nobody did. The reason for CR+LF was to insure enough time was spent for the carraige to get to the left edge, by wasting an extra character time processing the LF.

    13. Re:CRLF is technically correct by spitzak · · Score: 1

      In the 70's a primary use of Teletypes was about 60 baud! (for wire services).

      Believe me, there was INTENSE desire to use only one character for newlines.

      The problem was that the mechanism for returning the carraige was slow, so Teletype forced the need to send a second character by making LF go straight down rather than to the left and down.

    14. Re:CRLF is technically correct by spitzak · · Score: 1

      No this is not correct. CR+LF was developed on CP/M and on early DEC microcomputers which were smaller or equal to the machines Unix was developed on. In fact CR+LF saved the need for code that translated one byte to two when printing to terminals that needed it, so in fact the limits of the machines actually caused CR+LF to be preferred. On these machines the idea of storing text long enough to have more than one line was probably laughable, too, so the space taken by a newline was irrelevant.

    15. Re:CRLF is technically correct by ProzacPatient · · Score: 1

      While we are musing on obsolete mechanical computer commands, let us also not forget the Vertical Tab (0x0B).

    16. Re:CRLF is technically correct by Agripa · · Score: 1

      You want the carriage to return and the paper moved up by one line, not print over the last line (CR only) or continue at the current position one line down (LF only). Imagine that, Microsoft doing something correctly.

      It was an accident; they copied from CP/M.

  7. Finally, a reason to upgrade to Windows 10! by johannesg · · Score: 4, Funny

    Or will this be backported to Windows 7?

    1. Re:Finally, a reason to upgrade to Windows 10! by Zaiff+Urgulbunger · · Score: 1

      Or will this be backported to Windows 7?

      This kind of functionality is only available to paying customers who want the latest and greatest Microsoft can deliver. This feature will likely get it's own bullet point on a "list of what's new in Windows 10-foo" power-point presentation that someone, who works for MS, probably in sales, and is very very sad, will have to sit through. There's a whole 'nother world out there. And it's awful. But, I can ignore it because I don't use Windows. :)

  8. Re:Odd by MrKaos · · Score: 1

    It is just odd that they would leave this out forever on purpose and then suddenly fix it. It has been literal decades, and the absence was obviously malicious.

    Cloud is king and the writing is on the wall. You don't take you lead architects of core products unless your business strategy is changing. This is just another sign of the inevitable.

    --
    My ism, it's full of beliefs.
  9. Re:too little, too late by Freischutz · · Score: 1

    who cares?

    Millions upon millions of MS Windows admins 'stuck' with Linux systems? It's actually kind of funny to watch them work, they are so used to point-n-click snap-in GUI interfaces that most of them don't even know how to write a script. Recognise a Windows admin worth having a conversation with by the fact that he scripts most of his work using VB or C# rather than sitting there for hours pounding a mouse button working a GUI management tool to do stuff a script can do in 10 minutes.

  10. Re:too little, too late by DarkVader · · Score: 1, Troll

    Exactly.

    I'm not going to suddenly start editing text in Windoze. I mean, I'm not going to complain that they started actually ending lines properly, it only took forty-ish years, but they finally figured out how to do it.

    Meanwhile, TeachText became SimpleText became TextEdit. The Macintosh user interface evolved through many generations. And now, finally, in 2018, MicroShit figures out how to do what they should have been able to do in 1984.

    Idiots.

  11. Notepad a major annoyance for developers by najajomo · · Score: 2

    'Microsoft's text editing app, Notepad, which has been shipping with Windows since version 1.0 in 1985, now supports line endings in text files created on Linux, Unix, Mac OS, and macOS devices. "This has been a major annoyance for developers, IT Pros, administrators, and end users throughout the community,"'

    You cannot be serious, what professional developer in his right mind would use Notepad?

    1. Re:Notepad a major annoyance for developers by Gavagai80 · · Score: 2

      Developers have clients who aren't developers. I don't use Windows, but I'm happy about this change because occasionally I've had clients who wanted to edit one of my files in Notepad and would find it looking broken to them because of lack of line break parsing.

      --
      This space intentionally left blank
    2. Re:Notepad a major annoyance for developers by thegarbz · · Score: 1

      You cannot be serious, what professional developer in his right mind would use Notepad?

      Close to 100% of them. Just not necessarily while developing. Kind of like just because vi is my editor of choice doesn't mean that I don't frequently end up on a test system opening something in nano or *shudders* emacs.

      Developers especially frequently send files cross platforms onto test systems they don't administer and need to use a standard OS image. God forbid they remotely access a file on another system, or their main OS from another OS.

    3. Re:Notepad a major annoyance for developers by BadDreamer · · Score: 2

      You cannot be serious, what professional developer in his right mind would use Notepad?

      Any developer having to do a change of an ini file or script on a locked down machine where no user software can be installed, such as a machine in a production environment or factory.

      And any developer who has to guide a user in such a change over the phone or a remote connection.

      Making Notepad actually useful is a huge step in reducing the pain of maintaining Windows based automation and enterprise solutions.

    4. Re:Notepad a major annoyance for developers by ausekilis · · Score: 1

      You cannot be serious, what professional developer in his right mind would use Notepad?

      Those same senior developers that use pico and nano, I would assume.

    5. Re:Notepad a major annoyance for developers by Bite+The+Pillow · · Score: 1

      When you can't download or install anything, you use what's on the server you're on at the moment.

      So many idiots here saying "just create a potential security problem" as the solution. No wonder every website ever has leaked personal info. You people are stupid.

    6. Re:Notepad a major annoyance for developers by Billly+Gates · · Score: 1

      Atom.IO, and even MS Visual Studio Code is free and available for all platforms for the win32 fanboys and are very simple to use unlike Emacs and gVIM.

  12. Re:too little, too late by Zaelath · · Score: 4, Insightful

    Yeah, but then.. Notepad++

  13. Wordpad by nuckfuts · · Score: 2

    I don't know whether it handles Mac OS files, but Unix text files open just fine in Wordpad (which like Notepad is part of every Windows installation).

    1. Re:Wordpad by drdread66 · · Score: 1

      WordPad works on Mac OS files just fine. I use notepad++ if it's available because WordPad defaults to a proportional font, which makes code and script really hard to read...but in a pinch, WordPad will do.

  14. Re:too little, too late by arglebargle_xiv · · Score: 3, Informative

    It's also Windows 10 Bleeding Edge Edition only, so it's still not going to help that many people.

  15. Azure by mccalli · · Score: 1

    This is geared at people working with mixed deployment systems on Azure. And it's great. Honestly, this has been my most wished for feature in Windows for a long, long time.

    Drop the negativity - a good and useful thing has just happened. Thanks.

    1. Re:Azure by skullandbones99 · · Score: 1

      Just wait until notepad corrupts your file when it writes the file back to disk in CR/LF format... and this will be classed as a "feature".

  16. Write by fluffernutter · · Score: 1

    MS write (or.. wordpad?) always supported it and came with windows free so it was never a big deal.

    --
    Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
  17. Re:Odd by Buchenskjoll · · Score: 2

    Which line endings should I use when writing on the wall?

    --
    -- Make America hate again!
  18. The funny thing... by Slartibartfast · · Score: 5, Informative

    Is that edit.exe -- the console-based editor that came out with DOS 5.0 -- *did* support UNIX EOL. Go figger.

    1. Re:The funny thing... by geekymachoman · · Score: 1

      Most people in the past 20 years didn't care about edit.exe but many did care about notepad, even 100 % linux users like me.. when I had to move some shell scripts, or quick edit some files that were created on Linux, for other people of course.

      Reason MS didn't do this earlier is because majority of people were using Windows .. and they wanted to mess with Linux users in one more way.. and to show to that user base that even simple things as TXT files don't work properly on Linux... just another attempt to cause incompatibility between everything UNIX and Windows (since they had majority of users, this works for them actually... or at least worked).

      They never wanted to have Windows and Linux compatible... and they did everything in their power NOT to help the situation.. goes from boot loaders to notepad.exe taking everything else in between.

    2. Re:The funny thing... by Slartibartfast · · Score: 1

      I have to disagree somewhat. While I will never be guilty of ascribing good things to MS while under Ballmer/Gates, once the web came along, UNIX EOL suddenly became righter -- or at least terribly common. I would have to say it was just sheer hamfisted bluster and pride, moreso than a desire to put the hurt on the (then) microscopic userbase of people like you and me.

      But, really, barring an internal document showing this, it doesn't really matter what we think the reason was.

    3. Re:The funny thing... by omnichad · · Score: 1

      Wasn't it edit.com back then and really just a loader that put qbasic.exe in text editor mode?

    4. Re:The funny thing... by Slartibartfast · · Score: 1

      Ha! I actually hesitated before adding the file extension for that very reason. I do believe you are right.

  19. Re:too little, too late by Anonymous Coward · · Score: 1

    We already knew this, but it became painfully obvious with various rags (including el reg) gushing about how "powershell" was teh bestest thing evar... conveniently forgetting it's only about as many years behind Unix, and even Unix was merely following in older systems' footsteps.

    So if this isn't sheer head-up-butt incompetence, then it's malice: They're banking on having their users have no memory. But, you know, that's not quite how it works. Not with compatability features. But we can assume that the current crop of editors are indeed redmond fanbois, possibly paid shills, for finding ever newer ways to point out the fancy polished shine on this turd. It still doesn't really entice me, as the reasons I ran away from redmond and its crap software are still entirely too valid.

  20. Winvi by Anonymous Coward · · Score: 1

    I use WinVI as a replacement for notepad. Standalone, small, starts immediately. Works like Notepad, but you can press escape to go into VI mode. And the handling of LF/CR is superb.

  21. Yawn by Anonymous Coward · · Score: 2, Interesting

    Wake me up when windows can read EXT4 filesystems, I mean it has only been around for 15 years, is an open standard which could easily have been coded for, and it would be just common sense to do so. Meanwhile linux has been able to read NTFS/FAT/FAT32 for 20+ years.

    But oh yay, linebreaks, lookit all that progress..

  22. see comment by johnsnails · · Score: 1

    this app can break

  23. Re:too little, too late by azcoyote · · Score: 1

    Even better... EditPad!

    --
    Incipiamus, fratres, servire Domino Deo, quia hucusque vix vel parum in nullo profecimus.
  24. Re:too little, too late by Megol · · Score: 4, Informative

    ...ending lines properly ...

    CR: return to first character of the line.
    https://en.wikipedia.org/wiki/...

    LF: jump to the next line.
    https://en.wikipedia.org/wiki/...

    Perhaps you should read those articles (I've only verified the relevant parts so normal Wikipedia cautions apply), understand where the control characters came from, what they were used for and why there are different line endings out there? No "properly" about this.

    That it have taken this long for MS to change something this trivial is strange though. Guess they always assumed nobody use notepad?

  25. Re:Odd by Megol · · Score: 1

    Yes this is probably yet another advantage due to the Linux subsystem and therefore (indirectly) Linux.

  26. Re:Odd by Megol · · Score: 1

    You are a modern human right? So you use Unicode, right?
    U+2029

  27. Re:too little, too late by Anonymous Coward · · Score: 1

    Lots of people use notepad. More likey they didn't want to accommodate Mac/Linux files, just like they have always done. This small change, to me, actually represents a hugh change in direction for MS especially on top of the Linux on Windows work they have done and their cloud linux stuff. Big changes ahead, lets just hope they don't get to the extinguish step.

  28. small step for MS, big step for the humanity by goe1zorbey · · Score: 1

    Keep up the good work. Eyes waiting for "not trying to format any non-win partition on a drive"

  29. WordPad stock plunges 17%... by theodp · · Score: 3, Funny

    ...in after-hours trading.

  30. Re:too little, too late by Austerity+Empowers · · Score: 1

    who cares?

    All they have to do now is replace the rest of their OS. And also get notepad to not output CRLF, because we don't need that in the world.

    I mean if they want their OS to just be for games great, but anyone that can make a choice is selecting anything else. It's a horrible environment to get real work done on.

  31. Re: too little, too late by Anonymous Coward · · Score: 1

    Because Notepad++ is a GPL open source project. It can't be bought.

  32. Re:too little, too late by Anonymous Coward · · Score: 1

    $50 for an inferior editor is even better?

  33. Step one to being usable, done by Opportunist · · Score: 1

    Being able to handle large files by NOT trying to load a huge file into ram and only noticing after two minutes or 10 that it fails will probably take another 40 years.

    --
    We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
  34. huh? by Torvac · · Score: 2

    suddenly it got really cold down here for a moment

  35. Re:too little, too late by MagicM · · Score: 1

    Do you have a moment to talk about our lord and savior Sublime Text?

  36. "vi -b" on the other hand ... by devlp0 · · Score: 1

    "vi -b" to see the ^M end of line character and ^Z end of file characters of windows text files under *nix.

    --
    >/dev/null 2>&1
  37. Re:too little, too late by MagicM · · Score: 1

    If it's good enough for RFC 5321, it's good enough for me.

  38. Re:Windows EOL? MS-DOS EOL!!! by peppepz · · Score: 1
    Even earlier than MS DOS, IBM PC ROM BIOS routines parsed the CR and LF characters that way. And that behaviour was probably inherited from CP/M, which in its turn inherited it from the PDP machines of the 60s.

    To be honest, the CR + LF line ending is closer to be a standard for text interchange than any other combination of CR and/or LF. Many IETF RFCs mandate the use of CR + LF.

  39. Re:too little, too late by Anonymous Coward · · Score: 2, Insightful

    I call bullshit. How often do you really script something robust in 10 minutes? Do you have proper error handling, have you considered the edge cases, what about notifications of failure and logging output? It can take hours.

    For one-off jobs a shitty little brittle 10 minute script is fine, but for something of high importance 10 minutes is usually not enough.

    Personally, I don't see speed as the primary benefit... reproducibility is what I care about. I can spend 10 minutes doing a daily task... or I can spend an hour creating a script to automate that. After 6 days, the script will have paid for itself... after that it's all benefit to me.

    So please... stop with the fucking dishonesty. It's not necessary.

  40. Re:too little, too late by thegarbz · · Score: 1

    Guess they always assumed nobody use notepad?

    Or maybe they are planning on screwing up wordpad even more. :-/

  41. Re:too little, too late by thomst · · Score: 4, Interesting

    Zaelath noted:

    Yeah, but then.. Notepad++

    Personally, I've used Alan Phillips' Programmer's File Editor in place of Notepad for almost 20 years now.

    MS made it harder when they killed off support for the .hlp helpfile format, but there are ways around that - and, in addition to a pretty useful feature set, the program IS free, after all ...

    --
    Check out my novel.
  42. Re:too little, too late by Anonymous Coward · · Score: 2, Insightful

    Millions upon millions of MS Windows admins 'stuck' with Linux systems?

    It's not called 'stuck' when you are too stupid to learn how to do your job which includes managing Windows, Linux, BSD, various router and switching platforms, etc... The word you're looking for is 'incompetence'. Millions upon millions of *incompetent* MS Windows admins don't know *how* to work on Linux systems....

  43. Re: too little, too late by Anonymous Coward · · Score: 1

    Vim is the fastest editor I know of. Sure, you need to learn some, but it's worth it.

    There's your problem. Windows admins don't give a shit about being fast, efficient, or knowledgeable about all things IT-related. They learned how to point-and-click on their mom's computer at age 6 and that's why they will always recommend Windows--they don't have to be bothered to learn something new.

  44. Re:too little, too late by xSauronx · · Score: 1

    > Recognise a Windows admin worth having a conversation with by the fact that he scripts most of his work using VB or C#

    powershell. they should be scripting in powershell these days, which is kept up to date, has tons of built in functions and available modules for working in AD and just about anything on a wdinwos computer or server already available, and can take advantage of .Net libraries so you dont have to develop in c# to get something that powershell doesnt have as a native cmdlet. VB still has its uses, but the sort of stuff my coworker does in VB is way easier in powershell much of the time. I'm not saying there is no use for c# scripting, but powershell is where it's at.

    I am a windows sysadmin who had a little linux background and uses a ton of powershell in my day to day work. there is some weird stuff MS is still behind on for no-good-reason, serer 2012 and 2016 resolved some of those things, but powershell gets a lot of attention from them

    --
    By and large, language is a tool for concealing the truth. -- George Carlin
  45. Re:too little, too late by xSauronx · · Score: 1

    > It's a horrible environment to get real work done on.

    this is sort of ridiculous, we are stuck on windows 7 at work and I can get all of my work done without an issue--my last job had 8.1 which i liked better, what do you really get out of linux that is so great? I got frustrated with linux a long time ago and have never looked back--to each his own, right? windows is not perfect, and *nix has had several features MS has been stupid slow to incorporate, but come on, to act like it is worthless is just silly at this point.

    --
    By and large, language is a tool for concealing the truth. -- George Carlin
  46. the registry must be a nightmare by reanjr · · Score: 1

    Why does this need to be disabled ever? How is it ever better to ignore obvious line breaks?

    1. Re:the registry must be a nightmare by Bite+The+Pillow · · Score: 1

      English is left to right, not left to right CR LF left to right CR LF.

    2. Re: the registry must be a nightmare by reanjr · · Score: 1

      But the default has changed. You think it's less confusing for novice users to figure out the old behavior is in the registry?

  47. ProDOS, UNIX, and CP/M newlines by tepples · · Score: 4, Informative

    Mac OS 1 through 9 use the same newline as ProDOS on the Apple IIe: $0D.
    Mac OS X 10.0 through 10.11 and macOS 10.12 to present use the same newline as UNIX: $0A.
    Traditionally, MS-DOS and Windows have used the same newline as Digital Research's CP/M: $0D $0A.

    The $0D $0A sequence dates back to the Teletype Model 33 terminal, one of the first terminals to use ASCII. It could process a carriage return ($0D) and a line feed ($0A) in parallel, but because a return took longer than a line feed, computers sent the return first, then the line feed, then a split second of pausing before the next character so that it wouldn't get smeared across the page during the return. If your Model 33 had the optional ASR paper tape drive, you might have had to use the delete key to insert the pauses yourself.

    UNIX relied on terminal drivers to convert a newline to whatever sequence a particular terminal needed. CP/M just encoded what the terminal expected directly into an application. MS-DOS was originally a clone of CP/M (and DR-DOS was forked from authentic CP/M), and Windows was originally a GUI shell around MS-DOS. Though MS-DOS 2 was sophisticated enough to use these sorts of drivers, it had to remain compatible with applications designed for the much more CP/M-like MS-DOS 1.

    1. Re:ProDOS, UNIX, and CP/M newlines by Marillion · · Score: 1

      And Microsoft Excel for Mac still saves CSV files with $0D line endings.

      --
      This is a boring sig
    2. Re:ProDOS, UNIX, and CP/M newlines by ProzacPatient · · Score: 1

      Mac OS 1 through 9 use the same newline as ProDOS on the Apple IIe: $0D.

      For a second there I though this was going to end with "For everything else; there is MasterCard."

  48. Re: Odd by tepples · · Score: 1

    Ubuntu Server, yes. Anything that relies on the presence of an X server, not quite yet. WSL users trying to run GUI apps have to obtain an X server elsewhere, which usually means a decade-old copy of Xming.

  49. Hey wait... by skullandbones99 · · Score: 1

    I just heard that Windows notepad tried to replace MS-DOS edline (line editor https://en.wikipedia.org/wiki/...), but failed as edline is still in Windows 10 !?

  50. Re:too little, too late by admin7087 · · Score: 1

    Don't worry, it's just part of their plan to make Windows more Linux-friendly, until one day they'll nuke all dual boot systems from the orbit "inadvertently" with a software upgrade, only to tell people they need not to worry, since they can continue to use Linux from their Windows partition. :-)

  51. Re:too little, too late by KingMotley · · Score: 5, Interesting

    Let's be fair here. The correct implementation of a new line in a text file *IS* CRLF. It is the format you need to send a printer to print the text. A single CR would just print all the text on a single line overwriting itself over and over, and a LF would make the text look like a staircase (until it ran off the side of the page). CRLF is therefore the correct way to end lines in a text file (or LF+CR which actually makes more sense, but I wasn't consulted when the standards started). Seriously, just go read any manual that describes the ASCII control characters and there will be no doubt left in your head about what SHOULD be the correct way.

    Linux got it wrong because it copied it from Unix. Unix got it wrong because it got copied from Multics (some of the original devs working on Unix were also devs on Multics). Multics (most likely) got it wrong because it was a bad performance hack (using a single byte to end lines is easier).

  52. Re: too little, too late by VernonNemitz · · Score: 1

    I'd like to see a menu option that lets the user specify what type of line-ending is wanted. Upon making the choice, an open document would be automatically given a search/replace pass, to change all line-endings to the specified type.

  53. Re:What year is this? by skullandbones99 · · Score: 1

    Tis the year that M$ embraces Linux...

    It is the year of Linux on the Windows Desktop.

    M$ is now extending its support for all things GNU / Linux in a bid to extinguish GNU / Linux once and for all.

  54. Re:For those (few) not understanding why 2 by skullandbones99 · · Score: 1

    Yep, that was the original idea of ASCII control codes to control teletypes and teleprinters over serial communication links.

  55. Significant figures by tepples · · Score: 1

    A fraction in ratio notation, such as 1/2, is assumed to be exact unless specified otherwise. A decimal, on the other hand, often represents an interval of real numbers based on significant figure conventions. For example, 0.5 means "anything that rounds to 0.5", namely the interval 0.450 to 0.550, and 0.50 means "anything that rounds to 0.50", namely the interval 0.495 to 0.505.

  56. UNIX can count to vi by tepples · · Score: 1

    Unix is not a text editor.

    A UNIX system includes the vi application, which is a screen-oriented text editor. The standard specifies its behavior.

  57. Re:too little, too late by craighansen · · Score: 2

    Look, if you want to emulate ancient technology, you'd also better make sure that if you only send carriage-return, your emulation should smear the next character across the paper about 40 positions to the left of the prior character, and that every character past 72 should overwrite that 72nd position, getting darker and darker until the ink starts to spread. And your terminal emulator should make a terrible racket with every printable character, which by the way, only included UPPERCASE letters and run at 110 baud (10 characters per second, 11 bits per character - an extra stop bit because it needed that extra time, too).

    ASR33s needed carriage-return, followed by line-feed because it took 200ms to get the carriage brought back to the left margin, slamming into the dashpot to cushion the blow, with the small metal arm carefully adjusting the size of the air hole to make the dashpot as close as possible to critically damped.

  58. Re: too little, too late by barakn · · Score: 1

    Notepad++ has that.
    Edit -> EOL Conversion -> ...

    Maybe you wanted that in Notepad?

    --
    "I'm so moist I'm sticking to the leather." -Kermit the Frog on The Late Late Show
  59. Re:too little, too late by Tenebrousedge · · Score: 1

    I'm stuck between, "this is a joke, no one would do that," and "who would make something like that up?".

    You might want to improve your toolset, perhaps with software from the current millennium.

    --
    Those who advocate genocide deserve every protection afforded by law, and none afforded by common human decency.
  60. and csv files are Excel files... by gosand · · Score: 1

    I gave up on convincing people of things.
    I will simply state something repeatedly... like "csv files are not Excel files. They are text files with comma separated values." Just because nearly EVERYONE uses Excel to view them, sometimes with terrible results because then they SAVE them in Excel which can change the data, doesn't make them Excel files.

    It's kind scary how things like that just become the de-facto standard. Then you get someone - a developer - trying to open and edit a 2MM row csv with Excel. While the developer was waiting minutes for the file to open in Excel... I opened it in vim, made the edits, zipped it up, and emailed it back to him. And people still think I am backwards for using the command line.

    --

    My beliefs do not require that you agree with them.

  61. Re:too little, too late by David_Hart · · Score: 1

    Yeah, but then.. Notepad++

    I prefer PSPad myself... but I'm a network engineer, not a programmer...

    I needed something that could handle both large log files and UNIX formatting. Even with this fix, Notepad still wouldn't work for me because of it's file size limits.

  62. Re:too little, too late by Austerity+Empowers · · Score: 1

    It is worthless from my perspective. Literally everything I do or use, if it works at all, requires a ton of work-arounds or bloat, or custom support from vendors who will never provide it.

    I suppose it depends on what you do, but browsers work fine everywhere, and I don't really need word or excel, i work for a living.

  63. Re: too little, too late by datavirtue · · Score: 1

    Yeah. They have a lot more things to support before I stop throwing up in my mouth whenever I have to use notepad.

    --
    I object to power without constructive purpose. --Spock
  64. Re: too little, too late by datavirtue · · Score: 1

    Registry change? WTF!?

    --
    I object to power without constructive purpose. --Spock
  65. Re:too little, too late by Darinbob · · Score: 1

    I used Wordpad for viewing text documents instead of Notepad, because Wordpad would let you wrap lines. I didn't use either to actually write text docs though. I did go to notepad+ a couple years back, but it does a lot of things I don't like, but it's much better as a "default" application to read text files.

  66. Re: too little, too late by Darinbob · · Score: 1

    Microsoft has been steadily removing more and more user options from menus. They seem to fundamentally dislike the notion of user customization. Sometimes those removed options go to the registry, but they also remove registry entries as well.

  67. Re:too little, too late by Darinbob · · Score: 1

    Ha. I know RFCs are treated as "standards" but those are only standards through general grudging agreement. Many of them came into existence with very little feedback, some were modified by later RFCs, etc. I take them with a grain of salt. My guess is that requirement is there just so that some less-than-stellar programs would work.

  68. Re:too little, too late by Darinbob · · Score: 1

    A lot of systems were written at a time when printers that didn't all work the same way and display terminals that did not all work the same way, so they would add a bit of translation when printing files, converting the text format to a printable format. Ie, read a record, send to printer, add CR+LF, repeat. Ie, the file didn't have the same format as the protocol needed to send the file and display it properly on a printer. There were tons of file formats out there, the "plain array of bytes" used on Unix wasn't all that common. No one could point to just one format and say "this one is correct all the others are wrong, without sounding like it was proselytizing".

    When microcomputers came along later, most affordable printers had settle into a single way of doing things with CR and LF, so the micros found it easy to just copy a file verbatim to a printer without needing a file. In other words, the file and the protocol were merged, somewhat out of ignorance perhaps, or maybe for convenience.

    These were telegraph codes originally, later standardized in Baudot codes (1900ish). CR and LF were separated from each other for practical purposes. CR took a long time for the carriage to actually return, but LF was fast. So you could send CR+LF+LF to do double spacing, or send lots of LFs to put in more gaps. Sending a redundant CRLF when only an LF was needed was wasteful, slow, and expensive.

    So there is no "correct" implementation. A file format does not need to have a printable representation internally.

    Thank heavens the abysmal DOS way of using ^Z was ditched though.

  69. They should have just bought Notepad++ by aberglas · · Score: 1

    GPL means they would need need to pay for it, but they would probably want to get the developers on board (not necessarily employed).

    There are many other free utilities that they could add. WinDirStat is one. 7zip another. Very cheap ways to add value to the base O/S with minimal effort or risk.

  70. ASR Teletype needed CR LF NULL by aberglas · · Score: 1

    LF must come after the CR because it takes more than 100ms to return the carriage. The LF can happen while the carriage is returning. But if it is beyond about column 40 then 200ms is still not enough, so you need to add a NULL.

    Those machines really flew at ten characters per second. Marvelous engineering.

  71. Re:too little, too late by KingMotley · · Score: 1

    Well except that baudot didn't have a line feed character. It had a "line" character which both returned to the beginning of the line (like carriage return) and advanced the paper (like a line feed). Line feed by itself didn't go back to the beginning of a line. For all the terminals and printers I know of, if you sent it "abcdef", it would turn out like this:
    abc
              def

    As it was defined to do. And that's why line feed by itself is just wrong. That's also why character code 10 in every ASCII chart including the first one defined in 1963 is called "line feed", not "line". Line feed has a very specific definition, and multics/unix/linux misused it if you actually want to be able to call your text files "ASCII". It either conforms to the ASCII standard or it does not, and having a line feed character act line a CRLF simply does not.

    But I agree with the ^Z (EOF) character. I can't count the number of times that copy {src} {dst} landed up truncating a binary file on me because I was too lazy to specify the /b option to tell it that it was a binary file and not stop at the first EOF character.

  72. Re:too little, too late by KingMotley · · Score: 1

    Erm.. Yay slashdot for eating thing that look like HTML. That was supposed to be "abc^Adef" would turn out like:
    abc
            def

  73. Re:too little, too late by spitzak · · Score: 1

    This is incorrect. Quite a few terminals, especially line printers and video terminals, interpreted LF as moving to the start of the next line.

    It was teletypes that did the unusual move straight down. This was done in order to hide the slowness of the mechanism for returning the carraige. Having to send a LF after a CR meant that there was an extra character time to handle the CR and get the carraige all the way to the left before printing.

    Dec in particular used Teletypes as cheap terminals, leading to the CR+LF behavior. CP/M was strongly influenced by DEC and from that you got MSDOS and Windows. Other systems (ie Multics, but also all other mainframe systems) used as single character for newline.

  74. Re: BOM by spitzak · · Score: 1

    And the BOM breaks every one of those magic numbers by being there instead of them, stupid.

  75. Re:For those (few) not understanding why 2 by spitzak · · Score: 1

    This is incorrect. LF was pretty useless for positioning because the machines lacked any method of moving the printhead to the left (other than CR). Backspace did not work.

    The reason LF worked this was was to force data to waste the time of 1 character after sending a CR. If LF returned to the left and moved down (as it did on MANY devices) then cheap ones could not do this fast enough to be able to print the next character.

  76. Re:too little, too late by KingMotley · · Score: 1

    I could be wrong, as much of this was before my time, but I don't recall a single printer that interpretted LF as moving to the start of the next line, and a cursory examination of terminfo (the most complete database of terminal capabilities that I am aware of), and having written a couple dozen terminal emulators myself shows that the vast majority does exactly what I said.. "cr" is defined as the ASCII CR character, cud1 is defined as the ASCII LF character, and nel (new line) is defined as the combination of ASCII CR and ASCII LF:
    dumb|80-column dumb tty,
            am,
            cols#80,
            bel=^G, cr=\r, cud1=\n, ind=\n,
    unknown|unknown terminal type,
            gn, use=dumb,
    lpr|printer|line printer,
            OTbs, hc, os,
            cols#132, lines#66,
            bel=^G, cr=\r, cub1=^H, cud1=\n, ff=^L, ind=\n,
    glasstty|classic glass tty interpreting ASCII control characters,
            OTbs, am,
            cols#80,
            bel=^G, clear=^L, cr=\r, cub1=^H, cud1=\n, ht=^I, kcub1=^H,
            kcud1=\n, nel=\r\n, .kbs=^H,

    vanilla|dumb tty,
            OTbs,
            bel=^G, cr=\r, cud1=\n, ind=\n,

  77. Re:too little, too late by spitzak · · Score: 1

    Sending CR+LF to a terminal that did both for LF was harmless, which was why the dumb definition does that. Most of these terminals had a option to switch the behavior due to the popularity of DEC operating systems (as they supported Backspace it was actually possible some software relied on LF going straight down, earlier terminals did not interpret backspace so going straight down was nearly useless). I know VT100s did, I think VT52 did with a dip switch. As the computer could not know which way the terminals were set, sending both was safer.

  78. What Notepad really needs by ayesnymous · · Score: 1

    Auto backup in case the system crashes/restarts.

  79. Sad by sproketboy · · Score: 1

    It's sad that it's newsworthy the Microsoft finally makes a small improvement to a 30 year old piece of shit app. Fuck you Microsoft.

  80. Re:Odd by MrKaos · · Score: 1

    hmmmm, I try to go for a current model so you can get parts for it. I mean it's cheaper if it's end-of-line but it's much harder to get parts.

    -- Make America hate again!

    clever sig you got there.

    --
    My ism, it's full of beliefs.
  81. Re:too little, too late by KingMotley · · Score: 1

    That actually explains a lot. Every once in a long while someone comes along and makes a truly insightful post and I remember why I still come here. Thank you for that.

  82. Who freakin' cares now?! by martinfb · · Score: 1

    WordPad has always been able, and available.
    How is this a slashdot-worthy notice?

    --


    Self-importance and self-indulgence is the root of ALL evil.
  83. Re:too little, too late by Agripa · · Score: 1

    Back when this mattered, it was standard to include a DIP switch settings on the printer which selected between various behaviors in response to CR and LR.

  84. Re:too little, too late by brantondaveperson · · Score: 1

    That's a nice argument, but taking a step back from the origin of these character codes, which aren't really that important except from the point of view of a history major, it simply doesn't make any sense to use two characters to denote the end of a line in a text file. Doing so only raises the question of what either of those characters by themselves ought to mean, to which I can't think of a sensible answer.