https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70917
Bug ID: 70917 Summary: out-of-date documentation for character set support and environment variables Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: wilson at gcc dot gnu.org Target Milestone: --- In the doc section Environment Variables Affecting GCC https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/Environment-Variables.html#Environment-Variables Near the bottom, it mentions that you can set LANG to C-JIS etc, but the code that supported this was in mbchar.c, and that file was deleted in 2003. It also mentions near the top that you can set LC_CTYPE, I found this support in libcpp/charset.c, and it is disabled with an ifdef because it caused problems with non-ascii names. I think these two parts should be removed, or maybe LC_CTYPE commented out, and maybe add a comment to libcpp/charset.c to re-add LC_CTYPE docs if it ever gets re-enabled. LC_MESSAGES seems correct. LC_ALL refers to LC_CTYPE which is wrong if LC_CTYPE docs are removed, otherwise it looks OK. I'm not an expert in this area, so I'm not sure if I got this all right.