python locale strange error. what's going on here exactly?

后端 未结 3 2039
南旧
南旧 2021-01-30 11:09

So today I upgraded to bazaar 2.0.2, and I started receiving this message (I\'m on snow leopard, btw):

bzr: warning: unknown locale: UTF-8
  Could not determine          


        
3条回答
  •  温柔的废话
    2021-01-30 11:37

    I faced the same problem. When I ran locale, I noticed that the LANG and LC_ALL were unset. So I fixed this by adding the following lines in the .bash_profile file:

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

    Then I simply ran:

    source ~/.bash_profile 
    

    And this issue was fixed thereafter on my Mac.

提交回复
热议问题