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:
parent
4df8ec12f6
commit
6f00f89efa
3 changed files with 6 additions and 5 deletions
|
|
@ -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),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue