golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.23k stars 17.7k forks source link

x/text/encoding/charmap: support for code page `1125` aka `cp866u` #69779

Open yukal opened 1 month ago

yukal commented 1 month ago

Proposal Details

👋 Hey team,

I'm encountering issues with the charmap package when attempting to decode/encode using code page cp1125. This encoding is missing. Given that some of our Ukrainian projects rely on CP1125, especially when interacting with legacy systems, addressing this would be greatly beneficial.

IBM CP1125 (aka cp866u) is Ukrainian government standard (RST 2018-91) for DOS, based on common "alternative" encoding, but different from cp866 in 0xF2-0xF9. It is known by GNU iconv as CP1125.

cp1125

https://github.com/microsoft/vscode/issues/230438

I'd be happy to provide more details or assist with testing if needed. Thank you for considering this request.

yukal commented 1 month ago

Oh, I little bit confused, should this issue located here, or it should located at https://github.com/golang/text? Ok, I just leave it here, cause I didn't found any issue tracker at https://github.com/golang/text.

ianlancetaylor commented 1 month ago

CC @mpvl

I don't see a reason for this to be in the proposal process. Happy to hear otherwise.