Comment by eqvinox
6 years ago
> Bonus points to anyone who understands what these three lines are doing within it:
#define LOBYTE 0377
#define STRIP 0177
#define QUOTE 0200
That's just 0xff, 0x7f and 0x80 in octal, and the high bit used to be a flag for all kinds of "magic" behaviour back when 7-bit ASCII was the norm...
Yup, the dash shell (from Debian) still uses this, so it won't support unicode any time soon.
I find myself validating a lot of input to be ascii still. I think its time to write a lib to make use of all those wasted bits.
I signed the above post with an emoticon that does not render? Could it be that hn is not 8bit safe?
HN filters out emoji (well, most of them, the blacklist appears to be incomplete)
9 replies →
Bingo!