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? |
I don't see the problem here, please explain in more detail.
|
My shell message return me bad code(chaos code).
|
I'm not sure what you mean by "bad code" or "chaos code".
|
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.
|
Could you please try to copy/paste the message you get here, as closely as possible?
|
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.
|
Code:
export LANG="en_US" |
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.
|
That's weird. Did setting LANG help any? You might also want to set LC_ALL.
|
Thank you very much.I will promptly try on what you teached me when I was free.
|
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. |
Well, at least they are readable characters. :) Set LC_ALL in the same way as LANG.
|
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. |
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. |