IRCにおける大文字と小文字

IRCにおける大文字と小文字

RFC における規定

[1] RFC 1459 - Internet Relay Chat Protocol ( 版) http://tools.ietf.org/html/rfc1459.html#section-2.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.

[2] RFC 2812 - Internet Relay Chat: Client Protocol ( 版) http://tools.ietf.org/html/rfc2812#section-2.2

Because of IRC's Scandinavian 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 or channel names.

[3] RFC 2813 - Internet Relay Chat: Server Protocol ( 版) http://tools.ietf.org/html/rfc2813#section-3.2

Because of IRC's Scandinavian 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, or channel names.

CASEMAPPING

[7] IRC のプロトコルの拡張である CASEMAPPING >>6 を使うと、 大文字小文字の区別をどのように行うか指定できます。

[8] RFC には含まれていませんが、しばしば実装されているようです。

[9] 大文字小文字の等価性の種類として、次の3種類が定義されています。

[10] ascii
ASCII大文字・小文字不区別
[11] rfc1459
ascii に加えて {, |, }, ~ をそれぞれ [, \, ], ^ に対応付ける
[12] strict-rfc1459
ascii に加えて {, |, } をそれぞれ [, \, ] に対応付ける

[13] rfc1459RFC 2812, RFC 2813 と一致しており、 strict-rfc1459RFC 1459 と一致しています。既定値は rfc1459 とされています。実際には rfc1459 相当のものが用いられており、 RFC 1459 の記述が間違っていたようです。

実装

[5] >>4 によると90年代後期に ISO/IEC 646の版から ISO-8859-1 に移行しはじめてから記号についての同一視をしない実装がでてきたようです。

メモ

[14] RFC から読めない IRC, https://yoshino.tripod.com/73th/data/irccode.htm#japaneseproblem_case1