LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   shell prints bad code when returning message (https://www.linuxquestions.org/questions/linux-software-2/shell-prints-bad-code-when-returning-message-337570/)

backpacker 06-27-2005 04:26 AM

shell prints bad code when returning message
 
Some exaples:
I typed in command line # "ls root",the shell return me with"ls:root:....."(...... stand for bad code);
I typed in #"man ll",the shell return me with "man:......(...... stand for bad code).etc.

Must I change my shell environment variable?Which one?

Matir 06-27-2005 09:16 PM

I don't see the problem here, please explain in more detail.

backpacker 06-27-2005 09:29 PM

My shell message return me bad code(chaos code).

Matir 06-27-2005 09:31 PM

I'm not sure what you mean by "bad code" or "chaos code".

backpacker 06-27-2005 10:07 PM

Did you keep monitoring posting in the forum?Thank you very much.I am a Chinese.I don't know how to express what I actually meant.I meant the returned message neither in English nor in Chinese.I am so sorry for occupying lot of your time.

Matir 06-27-2005 10:15 PM

Could you please try to copy/paste the message you get here, as closely as possible?

backpacker 06-27-2005 11:26 PM

Now, please tell me how to set up for shell's environment variable "LANG= "to English.That will meet my problom.The message cannot to be able to be pasted or copied.Maybe the different code systems caused that.

Matir 06-28-2005 08:42 AM

Code:

export LANG="en_US"
I believe.

backpacker 06-28-2005 08:51 PM

I have been expressing myself with wrong words"bad code",actually I meant "junk characters" by that.Not all of shell's output in junk characters,only its behind part.

Matir 06-28-2005 10:46 PM

That's weird. Did setting LANG help any? You might also want to set LC_ALL.

backpacker 06-29-2005 12:23 AM

Thank you very much.I will promptly try on what you teached me when I was free.

backpacker 06-29-2005 02:06 AM

I have got progress when try code"export LANG="en_US".Now I have ????? instead junk characters.For example,shell saids "ls:root:???? when I issured command"ls root".

How to set LC_ALL?Please.

Matir 06-29-2005 02:28 AM

Well, at least they are readable characters. :) Set LC_ALL in the same way as LANG.

backpacker 06-29-2005 02:48 AM

Mater,I am realy appriciate your help.I also set LANGUAGE="en_US".Now the shell give me all Eglish characters.

By the way,"LC_ALL="en_US" did not work.What argument is LC_ALL ?And where does it located?

see you late.

Matir 06-29-2005 02:53 AM

LC_ALL sets the locale, where LANG just sets the language. I think it's a minor distinction somewhere.


All times are GMT -5. The time now is 01:00 AM.