Consider setting LANG="C.UTF-8"
Alpine 3.5.2 defines CHARSET=UTF-8 in /etc/profile, but does not define LANG or other locale-related environment variables.
Musl has a built-in “C.UTF-8” locale, and some limited support for other
locales, via a nonstandard MUSL_LOCPATH environment variable.
Adding LANG=“C.UTF-8” to /etc/profile (or elsewhere) would help external software (such as tmux) recognize that UTF-8 encoding is available. However, this might also set expectations for other locales to work, simply by changing LANG.
Am logging this bug per request on IRC. I’m not really sure what the best course of action is.
18:14 rfs613, oh yeah I have tmux aliased to tmux –2u
kaniini> rfs613: CHARSET=UTF-8 is not supported by musl; you have to set a proper locale e.g. LANG="C.UTF-8" 18:15 <kaniini>rfs613: we should probably fix it
18:15 <@kaniini>rfs613: if you open a bug, i’ll try to get to it sometime this week
(from redmine: issue id 7374, created on 2017-06-04)
- Revision 3e1a7de7 by Rasmus Thomsen on 2019-06-17T08:39:44Z:
main/alpine-baselayout: export LANG=C.UTF-8 in profile Also fix the license while we're at it. fixes #7374