Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default configuration does not support Chinese named file listing with ls #985

Closed
jimmy-yao opened this issue Jun 8, 2016 · 14 comments
Closed
Labels
👆 ConEmu Upstream issue in ConEmu.

Comments

@jimmy-yao
Copy link

jimmy-yao commented Jun 8, 2016

default configuration does not support Chinese named file listing with ls
OS:Windows10
Cmder:1.3.0-pre

ls-dir-cmder

@Heier2013
Copy link

  1. Press Win+Alt+p to open settings;
  2. Search key worrd Environment;
  3. Add the text set LANG=zh_CN.UTF-8.

I found this way by watching mingw64 ENV variables.

@jimmy-yao
Copy link
Author

Heier:
Thank you.
I have do this as you say
but it doesn't work
i try another way

On Tue, Jun 21, 2016 at 5:27 PM, Heier notifications@github.com wrote:

  1. Press Win+Alt+p to open settings;
  2. Search key worrd Environment;
  3. Add the text set LANG=zh_CN.UTF-8.

I found this way by watching mingw64 ENV variables.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#985 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AH8v3EydxGUYSbnAGpkLPofscYBFouUyks5qN66UgaJpZM4IwnFi
.

@lueo
Copy link

lueo commented Jun 21, 2016

Works for me! Thanks @Heier2013

@rehack
Copy link

rehack commented Aug 4, 2016

I have set up a set of LANG = zh_CN. Utf-8,use ls can see normal file name, but the file path can't display properly.
Another problem is the first time open cmder client And switch the file path will go wrong
screenshot
OS:win7 x64
cmder:1.3.0
@Heier2013 @jimmy-yao

@Heier2013
Copy link

@Codesboy

  1. In my case,i don't get any character encoding issues after set environment variables,you can try to uncheck the Monospace options;
  2. I think you should view the error info first or reinstall cmder.

@jing2si
Copy link

jing2si commented Aug 15, 2016

my envirionment: cmder_mini 1.3.0, windows 10
@Codesboy #1070 this can fix the file path problem

@rehack
Copy link

rehack commented Aug 15, 2016

perfect,It works.Thankyou.
@JanSchulz @jing2si

@MichaelXoXo
Copy link

MichaelXoXo commented Aug 23, 2016

I have the same problem,and Add the text set LANG=zh_CN.UTF-8.,but it doesn't work.
How can i solve the problem?

@rehack
Copy link

rehack commented Aug 24, 2016

@michael728 You need this #1070

@jankatins
Copy link
Contributor

@Codesboy I don't think so: ls is (usually) from the git-for-windows package. #1070 only fixes the garbled unicode letters in the current working dir (in the line before the lambda prompt -> the D:\ in the above screenshot).

It would help to see where the error comes from:

  • execute where ls.exe to get the full path to ls.exe
  • open a normal cmd window, switch to the same dir and execute the full path to ls.exe

-> if the same error happens than ls.exe is the problem

Then try in the same cmd window set LANG=zh_CN.UTF-8 and reexecute the ls call. If that works, then you can add the set ... call to <cmder>\config\user-profile.cmd or use #985 (comment) but do not use set LANG=zh_CN.UTF-8 but only LANG=zh_CN.UTF-8 (without the set)

@mbirth
Copy link

mbirth commented Apr 4, 2017

Just for the record, the locale set LANG=en-GB.UTF-8 or en-US.UTF-8 both didn't work for me as there don't seem to be any locales installed here. But set LANG=C.UTF-8 brought the desired effect and made umlauts appear in e.g. the ls command.

@jdhao
Copy link

jdhao commented Dec 29, 2017

It works for me by using set LANG=zh_CN.utf8.

@chjiyun
Copy link

chjiyun commented Apr 23, 2018

@jimmy-yao @mbirth @jdhao the best way to solve this problem is to modify the file (\Cmder\vendor\conemu-maximus5\ConEmu) ,search the keyword "EnvironmentSet" and add a new line:

<value name="EnvironmentSet" type="multi">
    <line data="set PATH=%ConEmuBaseDir%\Scripts;%PATH%"/>
    <line data="set LANG=zh_CN.UTF-8"/>
</value>

@Stanzilla
Copy link
Member

@chjiyun doing the same in the settings is a bit more convenient:
conemu64_2018-04-23_22-20-46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👆 ConEmu Upstream issue in ConEmu.
Projects
None yet
Development

No branches or pull requests