Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Windows Notepad fixed after 33 years: Now it finally handles Unix, Mac OS line endings
The Register ^ | May 8, 2018 | Thomas Claburn

Posted on 05/09/2018 9:43:07 AM PDT by dayglored

So happy for you, Microsoft, \r\n

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 users throughout the community," Microsoft acknowledged in a blog post today, without touching on why the issue was allowed to fester for more than three decades.

Notepad's line feed limitations may not inspire the same level of partisan bickering as the tabs vs. spaces debate or the possibility that semicolons may become mandatory in JavaScript.

Nonetheless, the app is widely used and does elicit some passion. News of the change at Microsoft's Build developer conference on Tuesday prompted the loudest cheer of any of the announcements.

"We fixed Notepad," declared Kevin Gallo, head of Windows developer platform.

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. ®


TOPICS: Business/Economy; Computers/Internet; Hobbies
KEYWORDS: ios; linux; macos; microsloth; microsoft; notepad; unix; windohs; windows; windows10; windowspinglist; wordpad
Navigation: use the links below to view more comments.
first 1-2021-37 next last
This was the biggest deal of the entire BUILD conference.

But gee, there goes the last reason anyone had to keep "WordPad" around...

1 posted on 05/09/2018 9:43:08 AM PDT by dayglored
[ Post Reply | Private Reply | View Replies]

To: Abby4116; afraidfortherepublic; aft_lizard; AF_Blue; amigatec; AppyPappy; arnoldc1; ATOMIC_PUNK; ...
Notepad enters the 1990's at last! ... PING!

You can find all the Windows Ping list threads with FR search: just search on keyword "windowspinglist".

2 posted on 05/09/2018 9:44:02 AM PDT by dayglored ("Listen. Strange women lying in ponds distributing swords is no basis for a system of government.")
[ Post Reply | Private Reply | To 1 | View Replies]

To: dayglored

UltraEdit rules, NotePad drools.


3 posted on 05/09/2018 9:44:22 AM PDT by dirtboy
[ Post Reply | Private Reply | To 1 | View Replies]

To: dirtboy

I was gonna say, if you don’t like NotePad, an alternative text editor is a trivial thing.


4 posted on 05/09/2018 9:46:51 AM PDT by FreedomPoster (Islam delenda est)
[ Post Reply | Private Reply | To 3 | View Replies]

To: Swordmaker

Ping.


5 posted on 05/09/2018 9:47:52 AM PDT by conservatism_IS_compassion (Presses can be 'associated,' or presses can be independent. Demand independent presses.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Ping!.................


6 posted on 05/09/2018 9:48:49 AM PDT by Red Badger (Remember all the great work Obama did for the black community?.............. Me neither.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: dayglored
Do I read this as meaning that when hitting the key while editing a file, notepad will insert according to context? That is, if there are nearby CRLFs, it inserts a CRLF; nearby CR's, it inserts a CR; nearby LF's, it inserts a LF?
7 posted on 05/09/2018 9:49:48 AM PDT by C210N (Republicans sign check fronts; 'Rats sign check backs.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: dirtboy
> ... NotePad drools...

Well, sure, but when you have to use a stock Windows box to do work with files from other OSes, Notepad is what you get, drool and all, and it's been worthless.

At least now there's hope. :-)

8 posted on 05/09/2018 9:50:15 AM PDT by dayglored ("Listen. Strange women lying in ponds distributing swords is no basis for a system of government.")
[ Post Reply | Private Reply | To 3 | View Replies]

To: dayglored

Oh drat I just shot my computer over the weekend. Now what....


9 posted on 05/09/2018 9:51:36 AM PDT by Karliner (Jeremiah29:11,Romans8:28 Isa 17, Damascus has fallen)
[ Post Reply | Private Reply | To 1 | View Replies]

To: dirtboy

Notepad++ myself.


10 posted on 05/09/2018 9:52:48 AM PDT by i_robot73 (One could not count the number of *solutions*, if only govt followed\enforced the Constitution.)
[ Post Reply | Private Reply | To 3 | View Replies]

To: C210N

I would be pleasantly surprised if it did all that.


11 posted on 05/09/2018 9:53:44 AM PDT by rightwingcrazy
[ Post Reply | Private Reply | To 7 | View Replies]

To: C210N
> Do I read this as meaning that when hitting the key while editing a file, notepad will insert according to context? That is, if there are nearby CRLFs, it inserts a CRLF; nearby CR's, it inserts a CR; nearby LF's, it inserts a LF?

Yeah, context. These are just plain text docs, so there's no useful metadata or header, and the only thing for the editor to do is read until it hits either an LF or a CR, figure out what the EOL looks like, and use that convention for that file.

For newly created files, it will still default to Windows CR-LF sequence.

Other editors have been doing this for 30+ years. It's not rocket science. But until recently, Microsoft refused to play nice with other OSes and so every editor-user in WindowsLand has suffered with the fact that the default Windows editor was brain-dead by design.

12 posted on 05/09/2018 9:54:03 AM PDT by dayglored ("Listen. Strange women lying in ponds distributing swords is no basis for a system of government.")
[ Post Reply | Private Reply | To 7 | View Replies]

To: rightwingcrazy

See #12 — that’s exactly what it does. Be pleasantly surprised. :-)


13 posted on 05/09/2018 9:55:44 AM PDT by dayglored ("Listen. Strange women lying in ponds distributing swords is no basis for a system of government.")
[ Post Reply | Private Reply | To 11 | View Replies]

To: dayglored

CRLF is a holdover from the teletype days. Back when a carriage return really meant return the carriage to the left margin, and line feed moved up the platen.

If you just did a CR without a LF, your next row of type would overstrike the first, useful when creating ASCII art.


14 posted on 05/09/2018 10:18:07 AM PDT by Yo-Yo (Is the /sarc tag really necessary?)
[ Post Reply | Private Reply | To 1 | View Replies]

To: i_robot73

Discovered Notepad++ many years ago, never looked back. Especially for editing code / scripts.


15 posted on 05/09/2018 10:19:31 AM PDT by lump in the melting pot (Half-brother is Watching You!)
[ Post Reply | Private Reply | To 10 | View Replies]

To: i_robot73

Agree.


16 posted on 05/09/2018 10:19:36 AM PDT by day10 (You'll get nothing and like it!)
[ Post Reply | Private Reply | To 10 | View Replies]

To: dayglored

Egads! I’m old. I still use edlin.exe


17 posted on 05/09/2018 10:42:55 AM PDT by Cletus.D.Yokel (Catastrophic, Anthropogenic Climate Alterations: The acronym explains the science.)
[ Post Reply | Private Reply | To 8 | View Replies]

To: Yo-Yo
CRLF is a holdover from the teletype days. Back when a carriage return really meant return the carriage to the left margin, and line feed moved up the platen.

I was just thinking the same thing. In my PCP-8 days on a DEC teletype (or Lear Sieglar ADM80) ^i was tab, ^m was return, ^j line feed.
18 posted on 05/09/2018 10:45:40 AM PDT by Dr. Sivana (There is no salvation in politics.)
[ Post Reply | Private Reply | To 14 | View Replies]

To: Cletus.D.Yokel
Egads! I’m old. I still use edlin.exe

That's okay. I use TECO.
19 posted on 05/09/2018 10:47:00 AM PDT by Dr. Sivana (There is no salvation in politics.)
[ Post Reply | Private Reply | To 17 | View Replies]

To: dayglored

For any kind of development (PowerShell, sql, Java, etc.) I use Notepad++. A much better product, handles larger files and it’s free.


20 posted on 05/09/2018 10:47:33 AM PDT by CatQuilt (Lover of cats =^..^= and quilts)
[ Post Reply | Private Reply | To 1 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021-37 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson