Closed TheChymera closed 4 years ago
Just to put this in context, GNU ls has a default quoting style of "shell-escape" where STDOUT is a tty. This quoting style can cause the UTF-8 representation of U+00F6 to be displayed as ''$'\303\266'
under specific conditions. These conditions are:
Alternately, a name that consists of bytes that do not decode correctly as UTF-8 may cause this.
None of these conditions apply to the OP. This - and the fact that the root user account is not affected - makes this an irregularity, and one that is not readily reproducible in a normal Gentoo system.
Here is a test case:
$ touch $'\303\266'
$ locale # make sure LC_CTYPE refers to a valid/installed UTF-8 locale
$ ls # should render character in its correct form (ö)
$ LC_CTYPE=C ls # should print ''$'\303\266' instead
Figured it out (thanks, redsh). Locale handling will fail if any of the supported environment variables refer to an invalid locale. First of all, that makes this bug invalid. Secondly, the OP should either not mix in en_US.utf8 or ensure that the locale is generated before trying to do so.
@kerframil so what's the solution? I can't find en_US.utf8
specified anywhere in my config:
mediahost /etc # ag en_US
config-archive/etc/locale.gen.dist.new
23:#en_US ISO-8859-1
24:#en_US.UTF-8 UTF-8
config-archive/etc/locale.gen
23:#en_US ISO-8859-1
24:#en_US.UTF-8 UTF-8
locale.gen
23:#en_US ISO-8859-1
24:#en_US.UTF-8 UTF-8
@kerframil so what's the solution? I can't find
en_US.utf8
specified anywhere in my config:
As we later realised by way of an IRC discussion, the issue stems from this idiotic change in Gentoo's openssh package. The appropriate solution was not to accept the applicable client-specified variables in /etc/ssh/sshd_config.
@kerframil thank you for figuring this out!
For reasons neither I nor the helpful folk in #gentoo could discern, using this image I am not able to properly display special characters as my user (but I can as root). See the below paste for diagnostics and the actual issue (last two lines):
The consensus seems to be that something may be wrong with the image.