1
0
Fork 0
forked from External/ergo

relax unicode parsing rules

NFKC was previously used for all text. Now, we use NFKC for all args but
the last, which may be free text. This arg is normalized with NFC to
allow for formatting characters.
This commit is contained in:
Jeremy Latt 2014-02-26 13:11:29 -08:00
parent 4df8ec12f6
commit 6f00f89efa
3 changed files with 6 additions and 5 deletions

View file

@ -2,7 +2,6 @@ package irc
import (
"bufio"
"code.google.com/p/go.text/unicode/norm"
"io"
"log"
"net"
@ -24,7 +23,7 @@ type Socket struct {
func NewSocket(conn net.Conn, commands chan<- editableCommand) *Socket {
socket := &Socket{
conn: conn,
reader: bufio.NewReader(norm.NFKC.Reader(conn)),
reader: bufio.NewReader(conn),
writer: bufio.NewWriter(conn),
}