• rothaine@lemmy.zip
    link
    fedilink
    arrow-up
    27
    ·
    16 days ago

    Fun read!

    And even today, anyone who has worked on a project where some developers are on Windows and some are not has probably encountered the fun that is configuring autocrlf in Git: Windows uses CRLF (“carriage return, line feed”) as a line ending in text files, while other systems just use LF.

    • hperrin@lemmy.ca
      link
      fedilink
      English
      arrow-up
      8
      ·
      16 days ago

      Personally, I think carriage return line feed makes more sense in the context of a printer carriage. But then, how often are people using printers like that?

      • Onomatopoeia@lemmy.cafe
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        16 days ago

        It was probably designed like that because line printers were the thing in the early days of Windows.

        • deadbeef79000@lemmy.nz
          link
          fedilink
          arrow-up
          4
          ·
          16 days ago

          That’s in TFA.

          Having two characters: CR followed by LF allowed time for a teletype to physically return its carriage before printing the next printable character.

        • Default Username@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          16 days ago

          Not sure about that. Even the IBM 5150, which was the computer where DOS was first released and also coined the term “PC”, had a video card come as standard.

        • piccolo@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          13 days ago

          Unix was developed in 1969. MS-DOS (from where Windows inherits its baggage) was developed in 1981. And DOS was basically a clone of CP/M developed in 1974.

          So I dont see why windows would be designed with line printers in mind when its younger than unix. Its even more strange because CP/M and DOS were “microcomputer” OS and unlikely to ever operate a teletyper, while unix was primarily a mainframe OS that certainly would be operating a teletyper.

          Then you have MacOs being a weirdo and just using CR.