微软记事本 bom_Microsoft历经20年的不足终于修复了记事本

微软记事本 bom

微软记事本 bom

The inadequacy of Notepad.
记事本的不足。

Microsoft just announced yesterday that the upcoming update to Windows 10 is going to finally, after 20 years or so, fix Notepad so that it doesn’t jumble up and break on any file using unix line endings.

微软昨天刚刚宣布 ,即将进行的Windows 10更新将在大约20年后最终修复记事本,以使其不会混乱并不会损坏使用Unix行结尾的任何文件。

Starting with the current Windows 10 Insider build, Notepad will support Unix/Linux line endings (LF), Macintosh line endings (CR), and Windows Line endings (CRLF) as usual. 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.

从当前的Windows 10 Insider内部版本开始,记事本将照常支持Unix / Linux行尾(LF),Macintosh行尾(CR)和Windows Line结尾(CRLF)。 默认情况下,在记事本中创建的新文件将使用Windows换行符(CRLF),但是现在可以查看,编辑和打印现有文件,正确地维护文件的当前换行符格式。

Here’s what we’re talking about: Windows has always ended lines in text files with a Carriage Return and a Line Feed character "\r\n" while Unix has always ended the lines with just a Line Feed character "\n" . So when you try to open up a Linux or Unix file using Notepad, it’s going to break and display like the jumbled mess you see in the screenshot above.

这就是我们正在谈论的内容:Windows总是在文本文件中以回车符和换行符"\r\n"结束行,而Unix总是以换行符"\n"结束行。 因此,当您尝试使用记事本打开Linux或Unix文件时,它会中断并显示,就像您在上面的屏幕截图中看到的混乱一样。

I’m not saying that actual programmers use Notepad to edit websites. Of course they don’t. Real programmers use vim, and lesser programmers use some kind of IDE or Notepad++ or Ultraedit or any other tool on the planet that isn’t Notepad.

我并不是说实际的程序员使用记事本来编辑网站。 当然不是。 真正的程序员使用vim,而较少的程序员使用某种IDE或Notepad ++或Ultraedit或地球上任何非Notepad的工具。

Why does it matter if Notepad can’t open Linux files? Because virtually every single web server on this planet runs Linux, and the world runs on the web. So if you’re editing files from your web server, you’re going to be editing files that are using Unix line endings, and if you happen to open them in Notepad, they are going to show up like a jumbled mess. And if you save that file… well now your website is probably going to break.

如果记事本无法打开Linux文件怎么办? 因为实际上地球上的每个Web服务器都运行Linux,而整个世界都在Web上运行。 因此,如果您要从Web服务器上编辑文件,则将要编辑使用Unix行尾的文件,并且如果您恰巧在记事本中打开它们,它们将像乱七八糟的样子一样显示。 而且,如果您保存该文件……那么现在您的网站可能会崩溃。

It’s not just Notepad either—-we all wanted developer features like the Linux Bash shell, copy and paste from the Command Prompt, and built-in SSH support, but it took Microsoft years and years to finally add them.

不仅是记事本,我们还希望开发人员具备诸如Linux Bash shell从命令提示符下进行复制和粘贴以及内置的SSH支持之 类的开发人员功能,但是微软最终花了很多年的时间才添加它们。

So tons of cloud-based programmers like myself just switched to Mac. And these features that should have been added years ago just aren’t good enough to make us switch back. MacOS has built-in support for everything that developers need, and significantly better tools available for all the little things.

因此,像我这样的大量基于云的程序员刚刚切换到Mac。 这些本应该在几年前添加的功能还不足以使我们切换回原来的状态。 MacOS内置了对开发人员需要的一切的支持,并且为所有小事情提供了明显更好的工具。

It only took 20 years to display a text file correctly.
正确显示文本文件只用了20年。

So when the next Windows Update comes down and Notepad finally starts displaying files correctly, like you can see in the screenshot above, just know that it’s a little too late for many of us.

因此,当下一个Windows Update崩溃并且Notepad终于开始正确显示文件时(如您在上面的屏幕快照中所见),只知道对于我们许多人来说为时已晚。

翻译自: https://www.howtogeek.com/fyi/microsoft-finally-fixes-notepad-after-20-years-of-inadequacy/

微软记事本 bom

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值