Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve todo fix cp949 to ks_c_5601-1987 #86

Merged
merged 3 commits into from
Nov 13, 2019
Merged

Resolve todo fix cp949 to ks_c_5601-1987 #86

merged 3 commits into from
Nov 13, 2019

Conversation

rstm-sf
Copy link
Collaborator

@rstm-sf rstm-sf commented Nov 10, 2019

Resolve part #78

@rstm-sf
Copy link
Collaborator Author

rstm-sf commented Nov 10, 2019

@HelloWorld017, hello!

I decided to get around this way, so that it was more general.

/// A dictionary for replace unsupported codepage name in .NET to the nearly identical version.
/// </summary>
/// <remarks>ReadOnlyDictionary start support with .NET Framework 4.5</remarks>
private readonly Dictionary<string, string> _fixedToSupportCodepageName =
Copy link
Member

Choose a reason for hiding this comment

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

Maybe a dictionary is a bit unneeded. What about a if in the method above?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would also like to add

Not supported iso-2022-ch? Maybe fix to x-cp50227?

from #78

It can also be expanded in the future.

Copy link
Member

Choose a reason for hiding this comment

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

It's OK if we add those then.

PS I would remove the ReadOnlyDictionary comment. It's a private.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ready ;)

Copy link
Member

Choose a reason for hiding this comment

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

Ow One other thing , this dictionary could be static? As there is no need to recalculate the values multiple times.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I didn’t think about it.

@304NotModified 304NotModified added this to the 2.3 milestone Nov 13, 2019
@304NotModified
Copy link
Member

cool! nice improvement! Thanks again :)

@304NotModified 304NotModified merged commit 2655ac2 into CharsetDetector:master Nov 13, 2019
@rstm-sf rstm-sf deleted the refactor/todo_fix_cp949_to_ks_c_5601-1987 branch January 12, 2020 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants