From 21e604860f73f67648e666d6a1ffd72271ef7e10 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 22 Jun 2020 15:56:47 -0400 Subject: [PATCH] add an explanatory comment --- irc/strings.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irc/strings.go b/irc/strings.go index 7f3f6076..35ab98cf 100644 --- a/irc/strings.go +++ b/irc/strings.go @@ -50,6 +50,10 @@ const ( // this happens-before all IRC connections and all casefolding operations. var globalCasemappingSetting Casemapping = CasemappingPRECIS +// XXX analogous unsynchronized global variable controlling utf8 validation +// if this is off, you get the traditional IRC behavior (relaying any valid RFC1459 +// octets) and invalid utf8 messages are silently dropped for websocket clients only. +// if this is on, invalid utf8 inputs get an ERR_UNKNOWNERROR. var globalUtf8EnforcementSetting bool // Each pass of PRECIS casefolding is a composition of idempotent operations,