In OS X Lion, LANG is not set to UTF-8, how to fix it?

后端 未结 5 1446
离开以前
离开以前 2020-11-28 17:25

I try to setup postgress in OS X Lion, and find that is not correctly setup the LOCALE environment var.

This is what is set:

LANG=
LC_COLLATE=\"C\"
L         


        
5条回答
  •  伪装坚强ぢ
    2020-11-28 18:14

    This is a headbreaker for a long time. I see now it's OSX.. i change it system-wide and it works perfect

    When i add this the LANG in Centos6 and Fedora is also my preferred LANG. You can also "uncheck" export or set locale in terminal settings (OSX) /etc/profile

    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8

提交回复
热议问题