You are not logged in.

#1 2013-05-09 17:23:19

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Odd character in stdout

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)

Offline

#2 2013-05-09 17:33:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Odd character in stdout

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 :-)

Edit 2:

$ 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)

Offline

#3 2013-05-09 17:37:08

mooop12
Member
Registered: 2013-05-04
Posts: 17

Re: Odd character in stdout

What's the output of "localectl status"?

Offline

#4 2013-05-09 18:04:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Odd character in stdout

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)

Offline

#5 2013-05-09 18:10:23

mooop12
Member
Registered: 2013-05-04
Posts: 17

Re: Odd character in stdout

/etc/vconsole.conf:

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.

Offline

#6 2013-05-09 23:58:04

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: Odd character in stdout

[bran@ra ~]$ localectl status
   System Locale: LANG=en_US.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a

Offline

#7 2013-05-10 05:12:36

mooop12
Member
Registered: 2013-05-04
Posts: 17

Re: Odd character in stdout

@brando56894
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:
/etc/vconsole.conf:

KEYMAP=us
FONT=lat2-16

Also, make sure you are using UTF-8 compatible terminal when connecting to ssh (I should probably mention that first...).

Offline

Board footer

Powered by FluxBB