For some reason I have the French a with an accent randomly appearing in my console output and it's screwing things up. I don't have any other locale set other than en_us.UTF8 so I don't know what the problem is.
Here's some examples:
[bran@ra ~]$ status mysqld mysqld.service - MariaDB database server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled) Active: activating (start-post) (Result: exit-code) since Thu 2013-05-09 13:05:28 EDT; 12s ago Process: 10776 ExecStart=/usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE) Control: 10777 (mysqld-post) CGroup: name=systemd:/system/mysqld.service ââcontrol ââ10777 /bin/sh /usr/bin/mysqld-post ââ10901 sleep 1
[bran@ra ~]$ sudo chown -R mysql:mysql /var/log/mysql chown: cannot access â/var/log/mysqlâ: No such file or directory
It seems like it only happens via SSH but I'm not entirely sure of that. I'm connecting from an Arch box to an Arch box (and actually to another Arch via one, using it as a "jump box") and it's happened on both of the boxes that I've SSH'd into, yet it doesn't happen on any of them locally. I couldn't really find anything odd in the SSH config files either.
Edit: looks like it may be something in my .bashrc or specific to my user bran because I just switched to the root account and tried the chown command posted above and it worked as expected. Odd.
Last edited by brando56894 (2013-05-09 17:31:38)
On one of my computers I see "boxes" instead of â - these should be quotation marks.
By console output do you mean outside of X?
Edit: I see that the main issue is kinda solved :-)
$ localectl status System Locale: LANG=en_US.UTF-8 VC Keymap: pl X11 Layout: n/a
Last edited by karol (2013-05-09 17:42:52)
What's the output of "localectl status"?
If I try to type Polish accented characters, I get these boxes too.
I think I need to properly configure console fonts, edit /etc/vconsole.conf etc. - I don't care about it atm, but I may help someone.
Edit: Adding 'FONT=lat2-16' to /etc/vconsole.conf allows me to see Polish characters, but I now get '?' instead of the quotes.
Last edited by karol (2013-05-09 18:06:33)
KEYMAP=pl FONT=lat2-16 FONT_MAP=8859-2
Also, add "consolefont keymap" to /etc/mkinitcpio.conf hooks and then "mkinitcpio -p linux"
I'm from Poland too and that fixed all my locale problems.
[bran@ra ~]$ localectl status System Locale: LANG=en_US.UTF-8 VC Keymap: n/a X11 Layout: n/a
Since you're English user you probably don't need to set the font, but just to rule that out try to "setfont lat2-16" and "loadkeys us" and then checking for those odd characters.
If that fixes it then make a file:
Also, make sure you are using UTF-8 compatible terminal when connecting to ssh (I should probably mention that first...).