Looks like a really cool library - and dear God if I never have to deal with std locale again it will be too soon. This should be in the standard. Or at least something very close to it. Ideally with all 200+ common encodings (he said, knowing full well that he wouldn't be the one implementing it).
I understand your frustration, and salute your crusade, but I think you will have an easier time getting this through if you turned the ranting (entertaining as it is) down from 9 to maybe... 4?
There's about 30 single byte encodings in use, and about a dozen multibyte, and that makes you a full web citizen. https://encoding.spec.whatwg.org/ Shift-JIS is one of those, and one of the more tedious. The single byte encodings (e.g. windows-1250) are about an afternoon once you've done the first one. I'd like to see the full set in the standard, with a registry exposed that custom ones can be added to. I have a couple such private codepages that I'm currently extending gnu iconv for. We'd need to add a dynamic type erasing codec for retrieval by string, but that's not inventive technology.
79
u/LordKlevin Jul 01 '21
Looks like a really cool library - and dear God if I never have to deal with std locale again it will be too soon. This should be in the standard. Or at least something very close to it. Ideally with all 200+ common encodings (he said, knowing full well that he wouldn't be the one implementing it).
I understand your frustration, and salute your crusade, but I think you will have an easier time getting this through if you turned the ranting (entertaining as it is) down from 9 to maybe... 4?