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

How about changing the Shift-JIS codepage name to shift_jis #124

Open
puran1218 opened this issue Jul 7, 2021 · 5 comments
Open

How about changing the Shift-JIS codepage name to shift_jis #124

puran1218 opened this issue Jul 7, 2021 · 5 comments
Milestone

Comments

@puran1218
Copy link

It seems shift-jis is not a common use name of the Shift-JIS codepage. How about changing the Shift-JIS codepage name to shift_jis?

The change will affect two places: shift-jis -> shift_jis

  1. internal const string SHIFT_JIS = "shift-jis";
  2. | Japanese | `iso-2022-jp`, `shift-jis`, `euc-jp` |
@304NotModified
Copy link
Member

Sounds good to me, but I guess it's a (semantic) breaking change?

@rstm-sf
Copy link
Collaborator

rstm-sf commented Jul 18, 2021

@304NotModified
Copy link
Member

I think also that shift_jis is better, but any proposal to change it without breaking others? (E.g. code build on shift-jis)

@rstm-sf
Copy link
Collaborator

rstm-sf commented Jul 18, 2021

Sorry, but I didn't quite understand the question :)

For the creation of the Encoding object, this shouldn't be affected, in my opinion.

This will only affect the EncodingName

public string EncodingName { get; }

@304NotModified
Copy link
Member

This is an issue:

if(encoder.Detected?.EncodingName == "shift-jis")
{
...
}

As it will be "shift_jis".

I think this is a good idea, but because it's a semantic breaking change, it should wait for v3

@304NotModified 304NotModified added this to the 3.0 milestone Jul 22, 2021
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

No branches or pull requests

3 participants