Skip to content

Commit

Permalink
charset: reintroduce support for CP125x encodings
Browse files Browse the repository at this point in the history
In 8eb6e2e, charset handling was
refactored to make use of the ianaindex package. A number of charsets
present in the ianaindex package were removed from being explicitly
mentioned in go-message, leaving only a "quirks table." While nearly all
of the removed charsets are handled by the ianaindex package, support
for three charsets which were previously handled by go-message was
dropped: cp1250, cp1251, and cp1252.
  • Loading branch information
benburwell authored and emersion committed Jan 6, 2020
1 parent 71005f4 commit 47cbba6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charset/charset.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ var charsets = map[string]encoding.Encoding{

"ansi_x3.110-1983": charmap.ISO8859_1, // see RFC 1345 page 62, mostly superset of ISO 8859-1
"gb2312": simplifiedchinese.GBK, // GBK is a superset of HZGB2312
"cp1250": charmap.Windows1250,
"cp1251": charmap.Windows1251,
"cp1252": charmap.Windows1252,
}

func init() {
Expand Down

0 comments on commit 47cbba6

Please sign in to comment.