V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Sherlockhlt
V2EX  ›  问与答

ls 中文文件输出是???

  •  
  •   Sherlockhlt · 2014-07-11 09:28:50 +08:00 · 3237 次点击
    这是一个创建于 3571 天前的主题,其中的信息可能已经有所发展或是发生改变。
    终端是支持Unicode的,因为我cd的时候补全是可以补中文的,可是ls输出都是???,不知道该在哪里配置?
    3 条回复    2014-07-11 10:31:37 +08:00
    randal
        1
    randal  
       2014-07-11 09:42:26 +08:00
    locale不对
    agileguo
        2
    agileguo  
       2014-07-11 10:28:57 +08:00
    export LC_ALL=zh_CN
    看看呢
    Sherlockhlt
        3
    Sherlockhlt  
    OP
       2014-07-11 10:31:37 +08:00
    @agileguo
    @randal
    原来是locale的问题,按照@agileguo的方法解决了,谢谢两位!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2589 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:30 · PVG 12:30 · LAX 21:30 · JFK 00:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.