You are not logged in.

#1 2008-08-09 04:26:36

violagirl23
Member
Registered: 2008-01-24
Posts: 184

[Solved] bash: cd: rc.conf: ǥ쥯ȥǤϤޤ

An obscure problem with an obscure solution. You're probably wondering why I am posting this if I have already solved my issue. The reason is because I can find nothing like this on the net and I want to help someone in case they get in my boat. I was so lucky I found the solution.
You will notice that if I try to cd to a file (not a directory), instead of saying "Not a directory" it says "ǥ쥯ȥǤϤޤ " No other command is like this but cd, and otherwise, everything seems to work normally.
Now WHY is it doing this? Oddly enough, it wasn't the package being corrupted at all. No. In fact... it was my .bashrc!

alias ls='ls --color=auto'
#PS1='[\u@\h \W]\$ '
PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[m\] \[\e[1;32m\]\$ \[\e[m\]\[\e[1;37m\]'

LC_ALL=ja_JP.eucjp

#Tab completion for sudo
complete -cf sudo

Notice the LC_ALL=ja_JP.eucjp. At one point I had stuck that in there to try testing EUC encoding because I could never get it to work right, and then I forgot about it. Turns out NOTHING messed up except the cd command, which is WHY I forgot about it and why this haunted me for so long. Who would trace it back to THAT?
I had the problem on my old Arch install, but when I did the reinstallation I copied my .bashrc over (and all my config files) which is why I had the EXACT same problem again.
So this is my reason for posting this:
I urge ANYONE who seems to be having weird output from the cd command or anything to first check your .bashrc or your locales to make sure there is no issue. That is why it was happening to me, and that could very well be why it might happen to you.


"You can't just ask to borrow somebody else's lampshade. It's AWKWARD!"

Offline

Board footer

Powered by FluxBB