Dear ,
Is there a way to get and other programs to always print CJKVZ characters via ?
I can get ls to print with -w. But I'd like to do this all the time. Cat and such print these characters fine, so I reckon it's not my client or terminal.
Thanks heaps!

· brutaldon · 3 · 2 · 2

@Shufei what is your output of

env | grep '^(LC_|LANG)'

If it's empty, maybe setting LANG to something like "zh_CN.UTF-8" may help?

Quick test with Polish diacritics:

$ ls *czka
$ LANG="pl_PL.UTF-8"; export LANG
$ ls *czka

(the second output is ok)

#locale #sdf

Jolly good! This worked. I tried setting LANG in .profile, but couldn't get it to work for some reason.
Ok, I'll have to look around set, env, and export to learn this syntax, I guess. I'm hoping this clears up an issue with Chinese in gopher, too.
Thanks heaps! It's the little things...

@Shufei I just checked and adding

LANG="pl_PL.UTF-8"; export LANG

to my $HOME/.profile worked. ...

Yes, I had originally inputted it without exporting that value, because the file had a group export at the end... without the LANG. Oopsie!
But I tried it as above, and also added LC_ALL, and all is well.
Thank you SO VERY MUCH for helping. I'm learning, little by little.

@Shufei LC_ALL is only needed if you want to override other LC_* variables. I wouldn't bother setting it at all.
Great it works for you now!

Now where is my old Russian kanji dictionary....

Ta! I set this one in .profile, too, and that finally kept it persistent after logout.
I'm unclear on the difference practically between LANG and LC_ALL?
Anyway, both are set to zh_TW.UTF-8 now. I'll try other programs I had issues with, hopefully to see it cleared up. Yay!

@Shufei It worked, great!

LANG sets the default localization. The different LC_ variables will override specific localizations (number formats, character sorting, etc.) LC_ALL overrides everything. It might be that some old programs only understand LANG.

Oh, I see, it's a suite of variables for localization. I'll check that out.
I don't know why, but some commands / programmes work differently via ssh than on my machine. Well, I'll give a few oldies a go and see if they are happy.


You could make an alias "ls" that points to "ls -w"

Ta, that's an idea, one I'll have to remember and come back to for some other bash fun.
Thankfully, learning more about env, set, and profile solved this issue, though, at least so far.

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko