by TazeTSchnitzel · 11y ago · 0 comments
ISO 646[0] was a 7-bit character encoding, of which ASCII is a superset. It defined a common subset of characters that would always be available, leaving a few codepoints for local supersets to fill in. ASCII used some of those for punctuation, but Scandinavian character sets[1] filled them with extra lowercase and uppercase letters with diacritics.
IRC came from Finland, so it was designed for those charsets.
But the standard for the Internet is supposed to be ASCII, so what happens when you use those codes from ASCII that correspond to extra letters in the Scandinavian character sets? Take a look at RFC 1459:[2]
Because of IRC's scandanavian origin, the characters {}| are
considered to be the lower case equivalents of the characters []\,
respectively. This is a critical issue when determining the
equivalence of two nicknames.
Cute, right? Try it, it actually works (at least on Freenode!).[0] https://en.wikipedia.org/wiki/ISO/IEC_646
[1] https://en.wikipedia.org/wiki/ISO/IEC_646#National_variants
[2] http://tools.ietf.org/html/rfc1459 § 2.3
foo[1] = "\r\n";
fooÄ1Å = "ÖrÖn";
Perhaps it's something you just get used to after a while. The standard QWERTY keyboard has a reversed form of this "caseness" , with lowercase being []\ and their "uppercase" shifted versions {}|.The sorting wasn't flawless though, because in ASCII these are ordered {, | and } but the proper (Swedish and Finnish) collation of the end of alphabet is ...xyzåäö. So unless you specifically programmed around it, you'd get slightly incorrect sorting.
Yes, you would get used to having ÄÅ and äå as brackets and braces in programming. If this thing came back I'd be in an hour happily saying things like:
while(<¤fh>) ä
Él=split ' ';
print "¤lÄ0Å, ¤lÄ3ÅÖn";
åSo when you wanted to do word processing, you would first switch to the code page that has the Nordic characters. For programming, you'd switch to the US code page.
I don't know how real operating systems handled it :)
It still exists in Windows, for the same purpose.
<nick> ::= <letter> { <letter> | <number> | <special> }
<letter> ::= 'a' ... 'z' | 'A' ... 'Z'
<number> ::= '0' ... '9'
<special> ::= '-' | '[' | ']' | '\' | '`' | '^' | '{' | '}'