LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1100|回复: 5

mplayer打开文件时无法显示中文目录和中文文件名

[复制链接]
发表于 2008-11-1 08:50:36 | 显示全部楼层 |阅读模式
在论坛里查了很多帖子,把/etc/profile.d/lang.sh加了这么多:

export LANG=en_US
export LANG=zh_CN.gbk
export LC_CTYPE=zh_CN.gb2312
export LC_CTYPE=zh_CN.utf-8
export LC_CTYPE=zh_CN
export ALL=zh_CN.xxx
export LC_CTYPE=zh_CN.gbk
export LC_CTYPE=zh_CN.GBK
export G_BROKEN_FILENAMES=1


mplayer安装的命令是:
#./configure --enable-gui --enable-largefiles --enable-menu --prefix=/usr --codecsdir=/usr/lib/codecs/ --win32codecsdir=/usr/lib/wincodecs/  --language=zh_CN --confdir=/etc/mplayer

#make
#make install

皮肤和字体设置都是按照有关帖子设置的。

config是:
# Write your default config options here!

zoom=yes

gui.conf是:

enable_audio_equ = "no"
vo_driver = "x11"
vo_panscan = "0.000000"
vo_doublebuffering = "yes"
vo_direct_render = "no"
v_framedrop = "0"
v_flip = "0"
v_ni = "no"
v_idx = "-1"
vf_pp = "no"
vf_autoq = "0"
vf_lavc = "no"
ao_driver = "alsa"
ao_volnorm = "no"
softvol = "no"
ao_surround = "no"
ao_extra_stereo = "no"
ao_extra_stereo_coefficient = "1.000000"
dvd_device = "/dev/dvd"
cdrom_device = "/dev/cdrom"
osd_level = "1"
sub_auto_load = "yes"
sub_unicode = "no"
ass_enabled = "no"
ass_use_margins = "no"
ass_top_margin = "0"
ass_bottom_margin = "0"
sub_pos = "100"
sub_overlap = "no"
font_factor = "0.750000"
font_name = "/root/.mplayer/subfont.ttf"
font_encoding = "cp936"
font_text_scale = "5.000000"
font_osd_scale = "6.000000"
font_blur = "2.000000"
font_outline = "2.000000"
font_autoscale = "3"
cache = "no"
cache_size = "2048"
playbar = "no"
load_fullscreen = "no"
show_videowin = "yes"
stopxscreensaver = "no"
autosync = "no"
autosync_size = "0"
gui_skin = "Dushku"
gui_save_pos = "yes"
gui_main_pos_x = "547"
gui_main_pos_y = "294"
gui_video_out_pos_x = "-13"
gui_video_out_pos_y = "171"
equ_channel_1 = "鍓嶅彸"
equ_channel_2 = "鍓嶅乏"
equ_channel_3 = "鍚庡彸"
equ_channel_4 = "鍚庡乏"
equ_channel_5 = "涓棿"
equ_channel_6 = "浣庨煶"
equ_band_00 = "0.000000"
equ_band_01 = "0.000000"
equ_band_02 = "0.000000"
equ_band_03 = "0.000000"
equ_band_04 = "0.000000"
equ_band_05 = "0.000000"
equ_band_06 = "0.000000"
equ_band_07 = "0.000000"
equ_band_08 = "0.000000"
equ_band_09 = "0.000000"
equ_band_10 = "0.000000"
equ_band_11 = "0.000000"
equ_band_12 = "0.000000"
equ_band_13 = "0.000000"
equ_band_14 = "0.000000"
equ_band_15 = "0.000000"
equ_band_16 = "0.000000"
equ_band_17 = "0.000000"
equ_band_18 = "0.000000"
equ_band_19 = "0.000000"
equ_band_20 = "0.000000"
equ_band_21 = "0.000000"
equ_band_22 = "0.000000"
equ_band_23 = "0.000000"
equ_band_24 = "0.000000"
equ_band_25 = "0.000000"
equ_band_26 = "0.000000"
equ_band_27 = "0.000000"
equ_band_28 = "0.000000"
equ_band_29 = "0.000000"
equ_band_30 = "0.000000"
equ_band_31 = "0.000000"
equ_band_32 = "0.000000"
equ_band_33 = "0.000000"
equ_band_34 = "0.000000"
equ_band_35 = "0.000000"
equ_band_36 = "0.000000"
equ_band_37 = "0.000000"
equ_band_38 = "0.000000"
equ_band_39 = "0.000000"
equ_band_40 = "0.000000"
equ_band_41 = "0.000000"
equ_band_42 = "0.000000"
equ_band_43 = "0.000000"
equ_band_44 = "0.000000"
equ_band_45 = "0.000000"
equ_band_46 = "0.000000"
equ_band_47 = "0.000000"
equ_band_48 = "0.000000"
equ_band_49 = "0.000000"
equ_band_50 = "0.000000"
equ_band_51 = "0.000000"
equ_band_52 = "0.000000"
equ_band_53 = "0.000000"
equ_band_54 = "0.000000"
equ_band_55 = "0.000000"
equ_band_56 = "0.000000"
equ_band_57 = "0.000000"
equ_band_58 = "0.000000"
equ_band_59 = "0.000000"

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2008-11-1 10:24:29 | 显示全部楼层
这个没有问题啊。

还有你的lang.sh太乱了。
我的 就是下面的两行


export LC_CTYPE=zh_CN.UTF-8
G_BROKEN_FILENAMES=1

我用的是英文界面,第二个是对文件名正确显示。
还有我看到你的文件是放到windows下的,应该在/etc/fstab下面加上locale选项。
我的如下。

/dev/sda12       /mnt/win-e       ntfs-3g     umask=000,locale=zh_CN.UTF-8        1   0

我用的是slackware 12.1 窗口是xfce。

你的背景的美女不错,不知道再哪下载的。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-2 16:42:19 | 显示全部楼层
先谢谢。
我用的是12.0,照你说的做了,但还是不行,而且无法挂载windows分区。不知怎么回事。

哦,桌面是胡凯莉,在百度图片里找到的,她有四分之一中国血统,扮演过《蝎子王》中的女巫(主角)。
回复 支持 反对

使用道具 举报

发表于 2008-11-2 19:25:23 | 显示全部楼层
Post by pxl553;1902846
先谢谢。
我用的是12.0,照你说的做了,但还是不行,而且无法挂载windows分区。不知怎么回事。

哦,桌面是胡凯莉,在百度图片里找到的,她有四分之一中国血统,扮演过《蝎子王》中的女巫(主角)。

12的内核是2.4的吧,要在fstab中用 iocharset=cp936, locale 是2.6的选项。


其他的保持原来的样子,就是加个iocharset
回复 支持 反对

使用道具 举报

发表于 2008-11-2 22:16:05 | 显示全部楼层
/etc/profile.d/lang.sh 里面写得太乱了……一串命令执行下来,管用的只有:
  1. export LANG=zh_CN.gbk
  2. export LC_CTYPE=zh_CN
  3. export ALL=zh_CN.xxx
  4. export LC_CTYPE=zh_CN.GBK
  5. export G_BROKEN_FILENAMES=1
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-11-4 08:44:56 | 显示全部楼层
gmplayer 显示中文目录/文件名 必须是 UTF-8 的环境
如果非 UTF-8 环境 mplayer 是需要补丁的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表