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

GH-131358: Add encoding alias cseuckr for euc_kr #131370

Merged
merged 4 commits into from
Mar 19, 2025

Conversation

srinivasreddy
Copy link
Contributor

@srinivasreddy srinivasreddy commented Mar 17, 2025

@srinivasreddy srinivasreddy changed the title Add encoding alias cseuckr for euc_kr GH-131358: Add encoding alias cseuckr for euc_kr Mar 17, 2025
…VZ6yo.rst

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Copy link
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

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

I am quite surprise that there is the existence of cseuckr..

@picnixz
Copy link
Member

picnixz commented Mar 18, 2025

FTR, it's documented in https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API/Encodings so I guess it can exist in the wild?

@corona10
Copy link
Member

I believe that it's a very old encoding (except the banking system), and even if they use euc-kr, they designate the encoding euc-kr or cp949 (at Windows), not cseuckr.

@corona10
Copy link
Member

I am not sure it's worth adding it because we don't support all aliases that are listed on the JDK or Mozilla page.
(e.g ks_c_5601-1989)

@methane Do you have any ideas with this issue?

@corona10 corona10 self-assigned this Mar 18, 2025
@corona10
Copy link
Member

For example, there is also csEUCJP...

@methane
Copy link
Member

methane commented Mar 19, 2025

alias is imported by all Python programs. So I don't like adding everything in alias.

But in case of csEUCKR, it is used in real world.

I'm OK to adding it.

@corona10 corona10 merged commit 7558980 into python:main Mar 19, 2025
43 checks passed
@srinivasreddy srinivasreddy deleted the gh-131358 branch March 19, 2025 09:52
colesbury pushed a commit to colesbury/cpython that referenced this pull request Mar 20, 2025
* Add encoding alias cseuckr for euc_kr

* Update Misc/NEWS.d/next/Library/2025-03-17-21-35-53.gh-issue-131358.YVZ6yo.rst

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>

---------

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
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.

None yet

4 participants