• etler@programming.dev
      link
      fedilink
      arrow-up
      4
      arrow-down
      3
      ·
      10 months ago

      That means that detection was added explicitly because this prank was done enough that it was worth it to add.

      • Quik
        link
        fedilink
        arrow-up
        1
        ·
        10 months ago

        The reason is in fact not only because of this exact symbol, but because people tried to change program’s behavior in a malicious way by replacing legitimate code with same looking symbols.

  • NegativeLookBehind@kbin.social
    link
    fedilink
    arrow-up
    29
    arrow-down
    1
    ·
    10 months ago

    Something similar happened to me a while back. I was copying some code from a Mac to a remote Linux host. For some reason the Mac was using a thing called an “en dash” which is slightly longer than a regular hyphen - and was really fucking frustrating to figure out.

      • psud@aussie.zone
        link
        fedilink
        arrow-up
        1
        ·
        10 months ago

        For someone who abuses it, there is a remarkable absence of em-dashes in your comment :—)

    • lobut@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      10 months ago

      Some mac apps have some quirks, the default note app was probably not meant for pasting code in, but when you do it changes the quotes and makes them all fancy. Drives me up the wall and there’s nobody to blame but me.

      • 🐍🩶🐢@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        10 months ago

        I was looking for this. Some text from webpages end up pasting that way too, even on non-mac systems, and it is utterly infuriating. Nothing I hate more than having to paste something into notepad++ so I can fix all the stupid quotes from some online tutorial that is giving you things to paste into a command prompt.

  • SokathHisEyesOpen@lemmy.ml
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    10 months ago

    I knew a guy who used the Unicode character for a space in his password. He figured if anyone ever saw his password they’d think it was a space and still not be able to use it. It’s silly, but it was a fun thing to learn about him.

  • Boxman@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    10 months ago

    Me who programs in rust which has a specific compiler message to tell me what happened

  • itsraining@lemmy.world
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    edit-2
    10 months ago

    Technically I don’t think any Greek layout uses a different Unicode codepoint for the question mark. In fact, the ordinary semicolon symbol is used, so what the meme describes would probably not happen IRL.

    Does all this make it any less funnier? No. It’s still brilliant.

    • luciferofastora@lemmy.zip
      link
      fedilink
      arrow-up
      11
      ·
      10 months ago

      In Unicode, it is separately encoded as U+037E ; GREEK QUESTION MARK, but the similarity is so great that the code point is normalised to U+003B ; SEMICOLON, making the marks identical in practice.

      Source: https://en.wikipedia.org/wiki/Question_mark

      I’m still curious whether it would be accepted by the code interpreters / compilers of various languages. I’m not bold enough to assume they all normalise properly.

    • nxfsi@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      10 months ago

      Unicode should have enforced the principle of using the same encoding for similar looking characters like they did with CJK instead of allowing bullshit like the Cyrillic “o” or the Greek question mark.