strange characters on command line

You have a problem with Salix? Post here and we'll do what we can to help.
ikke
Posts: 263
Joined: 5. Feb 2010, 22:47

strange characters on command line

Post by ikke »

Have installed Salix XFCE 14 on a Vaio laptop.

Am getting strange characters on the command line when doing the most trivial operations : cp, rm, mv.

eg

Code: Select all

$ mv nvidia.txt nvidia-salix.txt 
‘nvidia.txt’ -> ‘nvidia-salix.txt’
in vim these rectangles are visible as :
â<80><98>nvidia.txtâ<80><99> -> â<80><98>nvidia-salix.txtâ<80><99>

locale is : "en_US.utf-8".

Any help?

Thank you.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: strange characters on command line

Post by gapan »

Run locale and post the entire output.
Image
Image
ikke
Posts: 263
Joined: 5. Feb 2010, 22:47

Re: strange characters on command line

Post by ikke »

gapan wrote:Run locale and post the entire output.
Thank you for reaction.

Code: Select all

$ locale
LANG=en_US.utf-8
LC_CTYPE="en_US.utf-8"
LC_NUMERIC="en_US.utf-8"
LC_TIME="en_US.utf-8"
LC_COLLATE=C
LC_MONETARY="en_US.utf-8"
LC_MESSAGES="en_US.utf-8"
LC_PAPER="en_US.utf-8"
LC_NAME="en_US.utf-8"
LC_ADDRESS="en_US.utf-8"
LC_TELEPHONE="en_US.utf-8"
LC_MEASUREMENT="en_US.utf-8"
LC_IDENTIFICATION="en_US.utf-8"
LC_ALL=
Looks Ok?

Thank you for any hint.utf-8
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: strange characters on command line

Post by gapan »

What terminal emulator are you using? And what font?
Image
Image
ikke
Posts: 263
Joined: 5. Feb 2010, 22:47

Re: strange characters on command line

Post by ikke »

gapan wrote:What terminal emulator are you using? And what font?
Guess the default ones provided by Salix 14.0
Terminal 0.4.8 Xfce Terminal Emulator Copyright © 2003-2008 Benedikt Meurer Copyright © 2007-2011 Nick Schermer
Font : DejaVu Sans Mono Style : book.

Thank you for your kind attention.
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: strange characters on command line

Post by gapan »

There is nothing that I can think of that could create this. But the example you posted shouldn't work that way either. An mv command (or a cp, or an rm command) doesn't output anything by default. And the default font in salix is terminus. So it seems like that's something you've tweaked in your account. Can you create a new user account and check with that? That will show you if it's a system wide problem or one that has to do with your user configuration.
Image
Image
User avatar
knome
Donor
Posts: 163
Joined: 20. Dec 2012, 19:36
Location: UK

Re: strange characters on command line

Post by knome »

Have you done any Bash shell tweaking? Post contents of ~/.bashrc and /etc/profile and ~/.bash_aliases (if it exists)
Image
ikke
Posts: 263
Joined: 5. Feb 2010, 22:47

Re: strange characters on command line

Post by ikke »

gapan wrote:So it seems like that's something you've tweaked in your account.
knome wrote: Have you done any Bash shell tweaking?
Thank you for reaction.
Guess you are right, but I can't find out what I did wrong.
Here is part of my .bashrc :

Code: Select all

alias mcopy="mcopy -v -m"
alias cp='cp -i -p -v'
alias mv='mv -i -v'
alias rm='rm -v'
alias ll='/bin/ls $LS_OPTIONS --format=long -h'
alias df='df -h'
alias du='du -h'
export HISTCONTROL=ignoredups
export LESSCHARSET=utf-8
export PATH=/root/bin:$PATH
export LANG=en_US.utf-8
export LANGUAGE=en_US.utf-8

alias which="type -path"
alias la="ls -la --color=auto"
alias mkey="xmodmap -e 'keycode 115=Multi_key' "
Any comments?

Thank you.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: strange characters on command line

Post by mimosa »

What does that last one do? Also LESSCHARSET ...

My first step would be to try commenting them out (one each at a time) to see the result. I believe just opening a new terminal is sufficient (no need to reboot) but I could be wrong.

It would probably be helpful to post the entire contents of the requested files. Not only do you not know what the person who asked for them is looking for, but more importantly, probably neither do they till they see it.
User avatar
knome
Donor
Posts: 163
Joined: 20. Dec 2012, 19:36
Location: UK

Re: strange characters on command line

Post by knome »

@ ikke

Trying your alias for the mv command I get the following...

Code: Select all

knome[~]$ mv -i -v  nvidia.txt nvidia-salix.txt
‘nvidia.txt’ -> ‘nvidia-salix.txt’
I could be wrong but suggests to me you may have a problem with your keyboard/keymap settings. Have a look at Salix Menu > System > Keyboard (gksu gtkkeyboardsetup).
Image
Post Reply