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

后端 未结 5 1445
离开以前
离开以前 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:25

    I recently had the same issue on OS X Sierra with bash shell, and thanks to answers above I only had to edit the file

    ~/.bash_profile 
    

    and append those lines

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

提交回复
热议问题