relief arrived a long time ago
Open the file in wordpad instead of notepad. Though I suppose it's good for the newbies that probably never knew that.
Windows Notepad users, rejoice! Microsoft's text editing app, which has been shipping with Windows since version 1.0 in 1985, has finally been taught how to handle 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 …
Open the file in wordpad instead of notepad.
Last time I tried that (I admit, it was many years ago) I found that Wordpad had "intelligently" changed the text when I saved it.
It's a long time back, but I have a vague memory of it seeing something it thought was HTML (it wasn't) so it added extra tags to make it comply to Microsoft's standards. Something like that. It saw something in there that made it decide it needed to add its own secret mix of herbs and spices instead of just saving the fucking text AS I WROTE IT (apologies for going full bob-mode there).
Oh, the memories just came flooding back. It decided, for no damned reason at all, to add Microsoft half-baked DTP formatting to it. Something like that. These are repressed memories, after all. Notepad (back then) couldn't handle the "large" (over 32K) file, so I used Wordpad. I thought I could trust it because it wasn't Tord¹.
I never used it again. For anything. That wasn't much of a hardship because back then (as now, and all times in between) I rarely used Windows anyway.
¹ Rhymes with "Word" but describes that piece of crap much more accurately.
This post has been deleted by its author
And when the s**t hits the fan you need stuff you don't have to p**s about with installing that does what you expect when you expect it.
Interesting this this fix got the biggest cheer.
"Bout f**king time" it took so long to do it.
I'd say the fact it took 30 years to fix means they did have better things to worry about ;-)
I do agree though, if I have to reinstall Windows, Notepad++ is always one of the first slew of utilities to go on there.
"News of the change at Microsoft's Build developer conference on Tuesday prompted the loudest cheer of any of the announcements."
When the announcement of fixing a simple issue in a text editor gets the biggest cheer, you've clearly (as an organisation) got your priorities wrong.
Still, this sums up MS perfectly. Windows 10 is full of annoyances that could be fixed without too much trouble, yet MS prefers to focus on improved AI, 3D Paint and other gimmicks instead of fixing core things like the Control Panel/Settings mess etc.
OMG they might even fix the UI they screwed up completely with digit sized controls, but no, there's even more UI nonsense to come with 'Fluent Design'.
It wasn't broken, M$ borked it and now there's more white on platinum white on bright white coming. Makes my eyes hurt and gives me a headache trying to find buttons that HAD colour but now look like everything else.
Oh and don't get me started on Edge perpetually hijacking PDF file associations.
Yes, this is what I do. I only use notepad to actually take notes. If I'm opening text files in Windows, I always use wordpad because I work in a mixed-OS environment and you never know what sort of file it might be. I'd rather use notepad, though, so yay!
Others have mentioned Notepad++. Not only for CR versus LF versus CRLF but for ASCII versus UTF-8 or UTF-16.
I also use One Note - the useful version that comes with Office rather than the free version limited to the cloud. Makes tables trivially easy, for example.
"Yeah. The guy thinks using a sequence of two characters is superior to using one to tell us the line ends there. Clearly pre-stone age stuff! LOL!"
Well, if you're going to be anal about it, CR is Carriage Return and without a Linefeed, LF, will cause the next line to overprint the first. Likewise, LF, Linefeed alone means drop down to the next line at the same character position so you keep printing till you reach the physical end of line and then lose everything following. If anything is odd, it was whoever decided that only one of CR or LF should act as both CR and LF in the days when many people were still using Teletypes.
Character 10 could mean drop down to the next line at the same character position, as you say. It could also mean feed a line and return the carriage - either were permitted by the ISO standard for teletypes. IBM used character 15 to do the same two jobs. But that misses the main point: these are printer or teletype codes, and there is no particular reason why the OS should use the convention of one variety of printer internally. These days we would use device drivers to abstract that away, and even in early Unix, there were ways of removing that device dependence. Which is obvious, if you think about it, otherwise printers wouldn't have worked with Unix.
"And I suppose I'd have to install Win-10-nic to get the notepad fix, right? No back-ports to 7?"
Not sure what your network card has to do with it, but as Windows 7 is in extended support, yes no new features. However if you copy the executable it will probably work.
No because Geany on windows can't handle some exotic encodings unless you do a unix2dos first. Of course now you can just open it in Notepad and resave it as well (do actual work in Notepad not so much). Still prefer to drop into a cygwin command line to fix it than open through UI.
‘people too lazy to download better software‘
... or working for a company with 30k+ servers built over the last 15 years, strict restrictions on software downloads, where the only thing you can be sure will be there are the default Windows tools.
Some commenters really do seem to demonstrate a cluelessness as to real-world limitations sometimes!
"lol! does anyone still use that old thing?"
Well, I know you probably meant that tongue-in-cheek, but a lot of us are stuck with it at work and for gaming and whatnot. I personally have a love/hate relationship with it, as it does keep me employed.
That said, Microsoft can't seem to release an update these days without shooting itself in the foot. And using Win10, I can say that Microsoft seems to have lost its grip on what is important: the user experience. Look at all the mindless garbage included with each release, and the way you're forced to use whatever menu system MS wants you to use when it would have been trivial to include the functionality offered in 3rd-party apps like "Classic Shell" as options and you'll see what I mean.
I personally feel that MS's developers and management are so bound up in bureaucracy and appeasing upper management on the warpath, that no one communicates and things are rushed to market (even more than usual) before they've been fully vetted.
The sad thing is, MS's marketing is so efficient that they've got most companies to sign their contracts in blood, and companies are so deep in bed with them that there is no escape. Linux is a great alternative, but not many are willing to take a leap of faith like that and restructure their company's IT systems.