首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未知编码: POSIX

未知编码: POSIX
EN

Unix & Linux用户
提问于 2017-04-20 15:58:12
回答 1查看 989关注 0票数 1

我正在尝试运行xrdb ~/.Xresources,但是我得到了以下错误:

代码语言:javascript
复制
~/dotfiles/.Xresources:0: warning: Unknown encoding: POSIX

有什么建议吗?

代码语言:javascript
复制
Xft.hinting: true 
Xft.hintstyle: hintfull 
Xft.antialias: rgba 
Xft.rgba: none
Xft.dpi: 96

Xcursor.theme: DMZ-Black
Xcursor.size: 16

#define r_bg   #000000
#define r_fg   #aaaaaa
#define r_hlfg #ffffff

! States: bg, fg, bgalt, hlbg, hlfg
rofi.color-enabled: true
rofi.color-normal: r_bg,r_fg,r_bg,r_bg,r_hlfg
rofi.color-urgent: r_bg,#ffffff,r_bg,r_bg,r_hlfg
rofi.color-active: r_bg,r_fg,#ffffff,r_bg,#ffffff
! states: background, border
rofi.color-window: r_bg,#ffffff

rofi.separator-style: solid
rofi.sidebar-mode: falseA
rofi.bw: 1
rofi.columns: 1
rofi.padding: 5

rofi.yoffset: -300
rofi.opacity: 80
rofi.fake-transparency: true
rofi.location: 0
rofi.width: 30
rofi.font: Inconsolata 12
rofi.lines: 10

! special
*.foreground:   #ffffff
*.background:   #000000
*.cursorColor:  #cc00ff

! black
*.color0:       #1c1c1c
*.color8:       #00d7ff

! red
*.color1:       #ff00ff
*.color9:       #d700ff

! green
*.color2:       #00afaf
*.color10:      #00afd7

! yellow
*.color3:       #0087af
*.color11:      #5f5fff

! blue
*.color4:       #5f5faf
*.color12:      #ff5fff

! magenta
*.color5:       #d75fff
*.color13:      #00d7ff

! cyan
*.color6:       #00afff
*.color14:      #00ffff

! white
*.color7:       #808080
*.color15:      #ccffff

! define different font params for various machines
#ifdef SRVR_chromebook
    #define urxvt_font_size 17
    #define urxvt_letter_spacing -1
#elif defined SRVR_baseline
    #define urxvt_font_size 16
    #define urxvt_letter_spacing -1
#else
    #define urxvt_font_size 15
    #define urxvt_letter_spacing -2
#endif

! make it easy to change font in one place
#define urxvt_font xft:Ubuntu Mono:pixelsize=urxvt_font_size
#define urxvt_bold_font urxvt_font:style=Bold

URxvt*font: urxvt_font
URxvt*boldFont: urxvt_bold_font

URxvt*allow_bold: true
URxvt*letterSpace: urxvt_letter_spacing

URxvt*buffered: false
URxvt.transparent: true
URxvt*shading: 15

URxvt*scrollBar:     false

此外,我在使用urxvt、tmux和vim获得256种颜色支持时遇到了困难。

locale的输出是:

代码语言:javascript
复制
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=POSIX

我在运行费多拉

EN

回答 1

Unix & Linux用户

发布于 2017-04-22 05:53:08

可以在xrdb命令的持续时间内临时设置不同的区域设置

代码语言:javascript
复制
LC_ALL=C xrdb ~/.Xresources

我推测xrdb是用许多年前的一些遗留库编译的,它支持基本的locale,但不知道如何处理POSIX语言环境。(如果这个答案是可复制的,您可能希望提交一个带有此答案链接的bug报告。相关标准要求定义POSIX,并且行为与C语言环境相同。)

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/360225

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档