Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

By the way, it's not true that Golang strings are always UTF-8. Golang source code is always UTF-8, but strings can contain arbitrary bytes. Trying to force all strings to be UTF-8 can lead to fiascos in the real world, where legacy encodings still do exist. (Although you SHOULD NOT add to the problem by creating new systems that use them!)

http://golang.org/pkg/unicode/ lists a bug at the bottom: "There is no mechanism for full case folding, that is, for characters that involve multiple runes in the input or output." So basically, they are aware of the bug / lack of feature and are working on it.



Full case folding is already in tip and will almost certainly be part of Go 1.1.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: