这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@cseeger-epages
Copy link

No description provided.

@cseeger-epages cseeger-epages changed the title added charset windows-1257 added charsets windows-125X Nov 5, 2019
@codecov-io
Copy link

Codecov Report

Merging #60 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #60   +/-   ##
=======================================
  Coverage   61.37%   61.37%           
=======================================
  Files          16       16           
  Lines         844      844           
=======================================
  Hits          518      518           
  Misses        280      280           
  Partials       46       46
Impacted Files Coverage Δ
charset/charset.go 81.81% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85cd354...8073d27. Read the comment docs.

Copy link
Collaborator

@foxcpp foxcpp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (still hoping for the bright future with Unicode)

@emersion
Copy link
Owner

emersion commented Nov 5, 2019

Are these really used in practice? I've tried to keep the number of charsets down to mitigate the binary size.

@cseeger-epages
Copy link
Author

cseeger-epages commented Nov 6, 2019

@emersion yes actually :D i use your go-message lib in mail2most and some of the users reported problems when getting different emails. With the character encoding at least 3 of them i have been able to reproduce so i choosed to add them all. Here is the link to the m2m issue

@cseeger-epages
Copy link
Author

@emersion anything to do here ?

@cseeger-epages
Copy link
Author

any chance to get this merged ?

@emersion
Copy link
Owner

emersion commented Dec 2, 2019

I'd prefer not to do add all of these. Please only add those encountered in the wild.

The default set in go-message is supposed to parse most messages, but will never be able to parse all of them. Note, you can register additional go-message charsets in your app if needed.

@cseeger-epages
Copy link
Author

@emersion ah i missed the func RegisterEncoding(name string, enc encoding.Encoding) function thats a very good point indeed. I added the missing charsets using this method so there is no need to merge this PR anymore if you dont want it. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants