rrdtool出图支持中文方法:最后还是给解决了,其实就是RRDTOOL工具不能识别中文。因为查看rrdtool编译的源码来看,默认的编码确实为空(“C”)。可以打开rrdtool文件夹中的src/rrd_graph.c文件。在3496行:代码如下:setlocale(LC_ALL,"C");默认为空,可以手动的直接修改为代码..
分类:
其他好文 时间:
2015-06-12 22:25:37
阅读次数:
229
(process:2553): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
File "/usr/share/ibus/setup/main.py", line 582, in
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/...
分类:
其他好文 时间:
2015-06-10 08:57:17
阅读次数:
197
试了N多方法,貌似在终端执行命令: export LC_ALL=zh_CN.GB2312;export.GB2312是最有效的。 ======================= 1.不管用那种ssh客户端,字体设定一定要设为可以显示中文的字体。 2.远程的locale一定要设置...
分类:
其他好文 时间:
2015-05-13 17:19:05
阅读次数:
110
在很多的shell脚本中,我们经常会看见某一句命令的前面有一句“LC_ALL=C”
SAR_CMD="LC_ALL=C sar -u -b 1 5 | grep -i average "
这到底是什么意思?
LC_ALL=C 是为了去除所有本地化的设置,让命令能正确执行。
---------------------------------
转帖:http://www.linuxsky.org/doc...
分类:
其他好文 时间:
2015-05-08 18:07:24
阅读次数:
167
在 Linux 当中,预设 root 的提示字符为 # ,而一般身份使用者的提示字符为 $;本次登录,支持语系改为英文[root@linux ~]# LANG=en [root@linux ~]# LANGUAGE=en [root@linux ~]# LC_ALL=en [root@linux ~...
分类:
系统相关 时间:
2015-05-05 21:14:21
阅读次数:
202
1,snmp安装脚本for ubuntu/CentOS#!/usr/bin/env bash export LC_ALL=C if [ "$(id -u)" != "0" ] then echo "This script. must be run as root" 1>&2 exit 1 fi#.....
分类:
系统相关 时间:
2015-04-11 22:32:08
阅读次数:
232
一、环境准备 使用Debian平台,需做如下环境检查: 1、检查各个需要的工具及内核版本号,看看是否符合lfs7.7的列表要求 2、检查需要用到的库,一共有三个,gmp, mpfr和mpc 工具检查脚本如下: #filename:check_env.sh#/bin/sh
export LC_ALL=...
分类:
系统相关 时间:
2015-04-10 11:15:20
阅读次数:
249
解决乱码问题 参考文章 http://www.jb51.net/os/Solaris/1656.html solaris 显示乱码的解决方法 现象: 利用命令 : LANG=zh; export LANG 即可。或者 LANG=C;export LANG 当然,我们也可以全部设定。 LC_ALL=z...
分类:
其他好文 时间:
2015-03-21 22:54:22
阅读次数:
231
#include #include #include #include int main(){ printf("Locale is %s\n",setlocale(LC_ALL,NULL)); setlocale(LC_ALL,""); printf("Locale is %s\n...
分类:
其他好文 时间:
2015-03-15 13:50:54
阅读次数:
99
#!/bin/bash
##########################################################
#ThisScriptForGetHardSoftInformationToMySQL#
##########################################################
LC_ALL=C
HSVDIR=/data/hardfile
TMPDIR=/data/tmp
BAKDIR=/data/hdbak
[!-d$TMPDIR]&a..
分类:
其他好文 时间:
2015-03-14 20:14:15
阅读次数:
187