logoalt Hacker News

A stray "j" ruined my evening

35 pointsby birdculturelast Tuesday at 9:56 PM21 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
mike_hocktoday at 9:25 AM

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

?

show 3 replies
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
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
benj111today at 9:20 AM

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

show 1 reply