logoalt Hacker News

A stray "j" ruined my evening

62 pointsby birdculturelast Tuesday at 9:56 PM30 commentsview on HN

Comments

Cyykratahktoday at 12:23 PM

A stray "J" I encountered years ago: a certain client's support tickets would often end with a single "J", which was a little confusing as it was not one of their name initials. After a brief investigation, the original email source contained this:

    <font face="Wingdings">J</font>
Which renders as a smiley face.
show 3 replies
zelon88today at 3:02 PM

If it's any consolation, the other day I spent 3 hours diagnosing a homebrew circuit board for no signal and finally realized the Raspberry Pi sending the signal had a dead GPIO pin.

mike_hocktoday at 9:25 AM

> but in ANSI newline delimiter is translated as "j"

?

show 3 replies
cozzydtoday at 3:52 PM

As a vim user, stray J's are a fact of life.

meindnochtoday at 9:30 AM

So this is a bug in that Signal TUI he was using? I.e. it mangles newlines in pasted text.

show 1 reply
benj111today at 9:20 AM

I like how -j fixed the stray j problem....

show 1 reply
weare138today at 2:01 PM

I was poking around with this and I noticed wl-copy has an option to trim newlines. Maybe that's why they added the option but I'm leaning towards gurk being the culprit. wl-copy itself seems to handle newlines ok, at least for me. This works as expected:

  echo -e "test\n" | wl-copy

  wl-paste
Getchownedtoday at 3:23 PM

[dead]