Summary: | app-editors/vim: CJK utf-8 locales are not recognized as utf-8 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | cangming.liu |
Component: | Current packages | Assignee: | Oskari Pirhonen <xxc3ncoredxx> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | proxy-maint, sam, vim |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
cangming.liu
2021-03-20 16:10:19 UTC
Any chance you could give a rough patch? Depends on how we want to proceed, I see a few options: 1. Explicitly check for UTF-8 locales and skip setting file encodings 2. Keep the gb2312 encoding, but have UTF-8 come first in the list 3. Remove all code that touches file encodings and use vim default, which is quite reasonable for 2021. Users who really care can set file encodings in their own vimrc. 3 is the most risky, but IMHO it's the cleanest, and the least surprising from a new Gentoo user perspective. I'm a recent migrant to Gentoo, and it certainly took me a while to figure out why/how my encodings are getting changed. I'll leave it up to the maintainers to decide which option to choose, as I don't presume to know the full intent behind these lines of code. Happy to provide a patch. In any case, the fix will end up breaking the existing behavior for some users, how does the Gentoo community handle such changes? |