码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu编码问题

时间:2017-05-02 18:18:09      阅读:276      评论:0      收藏:0      [点我收藏+]

标签:etc   oca   add   编码   back   tin   err   ble   exce   


Ubuntu编码问题


root@magus-18:/srv/rorapps/fgcc# rails -v
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.3
Python version: 3.3.1 final 0
Distributor ID:	Ubuntu
Description:	Ubuntu 13.04
Release:	13.04
Codename:	raring
Exception information:

unsupported locale setting
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 24, in crash_guard
    callback()
  File "/usr/lib/command-not-found", line 69, in main
    enable_i18n()
  File "/usr/lib/command-not-found", line 40, in enable_i18n
    locale.setlocale(locale.LC_ALL, ‘‘)
  File "/usr/lib/python3.3/locale.py", line 541, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting



方案:

sudo vim /etc/default/locale

add 

LC_CTYPE="en_GB.UTF-8"


又一次加载

source /etc/default/locale










Ubuntu编码问题

标签:etc   oca   add   编码   back   tin   err   ble   exce   

原文地址:http://www.cnblogs.com/yjbjingcha/p/6797207.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!