[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 关于dselect和apt-setup/perl的问题



The way I handle it is use dselect do the update.. and then select.. you can
choice to unselect the updated new package... that way you won't get the
problem..but very slow :) also..  as I remeber.. debian provide something call
majoy update ( which mean it only update the essential package ) you may check
that out also.
Perl just like C you can set your locale by using gettext and set locale..that's
why you get the error...(so do I) the problem is the program itself didn't
(perl)
come with a chinese locale interface..when the program look for
(/usr/share/locale/"your-locale"/"your-app".mo) is not there.. then they use the
default locale..that's what I understand... hope it will help you..
so if you really want perl to show chinese message..then you may build the mo
file form Perl source code and put it in that location. Or you can search in the
net and see anyone already did that...  :)
Not all app using gettext..  == Not all app can use locale.
But I think Perl use gettext.
Good luck
Alex

> On Tue, Dec 19, 2000 at 12:16:17AM +0800, linuxrat@gnuchina.org wrote:
> > 1. 使用dselect upgrade/apt-get upgrade选定一些更新的软件之后并
> >    执行了install,但是有一些软件我并不想安装,立刻就终止了. 但是
> >    以后执行安装的时候apt-get这些包管理程序总是抱怨而且试图安装
> >    下去. 我想恢复没有upgrade之前的状态, 有没有什么比较方便直接
> >    的命令行呢? 也就是说, 我如何取消dselect的upgrade并不让其提示
> >    upgrade? 我手工编辑/var/cache和/var/state,/var/lib下面apt,
> >    dpkg相关的文件来解决是问题不大的, 只是好麻烦的说. clean, autoclean,
> >    check这些动作都执行啦. 我想我的方式是最接近底层的了. apt的
> >    source都打开来看了. 呵呵...
>
> 我好象是用 dselect ,把捣乱的包 _ 了. apt-get 应该没有取消
> 选择的方法.不想升级的包使用 hold 把它悬起来.
> >
> > 2. apt-setup是一个perl程序, 我看到与它相关的一个信息提示模板文件
> >    有好几个语种的信息, 只是根据/usr/share/locale/下面的language.codeset
> >    修改之后运行apt-setup竟然会报错并执著地使用LANG=C. 我看了perl
> >    doc,也没有看出来能用其它的语种包括it,de,pl,fr等都不灵光了. 不
> >    知道哪位道友有过给perl设置可用的i18n/l10n环境变量的没有? 给小弟
> >    说说何如?
>
> perl 就不知道了,好象它也可以用 gettext 吧?
>
> --
> Best regard
> hashao
>
> --
> | This message was re-posted from debian-chinese-gb@lists.debian.org
> | and converted from gb2312 to big5 by an automatic gateway.
>
> --
> To UNSUBSCRIBE, email to debian-chinese-big5-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

--
To UNSUBSCRIBE, email to debian-chinese-big5-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
| This message was re-posted from debian-chinese-big5@lists.debian.org
| and converted from big5 to gb2312 by an automatic gateway.



Reply to: