1
0
mirror of https://github.com/golang/go synced 2024-11-25 05:47:57 -07:00

mime: add a TODO, fix the format of an error

R=r, rsc1
CC=golang-dev
https://golang.org/cl/4440054
This commit is contained in:
Brad Fitzpatrick 2011-04-18 11:21:16 -07:00
parent 98176b7760
commit 6211b596d6

View File

@ -136,7 +136,9 @@ func decode2231Enc(v string) string {
if len(sv) != 3 {
return ""
}
// Ignoring lang in sv[1] for now.
// TODO: ignoring lang in sv[1] for now. If anybody needs it we'll
// need to decide how to expose it in the API. But I'm not sure
// anybody uses it in practice.
charset := strings.ToLower(sv[0])
if charset != "us-ascii" && charset != "utf-8" {
// TODO: unsupported encoding
@ -240,7 +242,7 @@ func percentHexUnescape(s string) (string, os.Error) {
if len(s) > 3 {
s = s[0:3]
}
return "", fmt.Errorf("Bogus characters after %: %q", s)
return "", fmt.Errorf("mime: bogus characters after %%: %q", s)
}
i += 3
}