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

Re: when is the file /etc/profile and /etc/environment loaded



On Fri,19.Sep.08, 19:41:30, lucky.rand wrote:
> I use the mldonkey-sever, which started by /etc/rc2.d/S98mldonkey-
> server. And the locale is set in the file /etc/profile:
> 
>     export LC_CTYPE=zh_CN.UTF-8
> 
> However, it seems that the file /etc/profile has not been loaded when
> the mldonkey-server starts.As a result, mldonkey don't use the right
> locale, and the file names which include Chinese characters are
> encoded wrong.
> 
> Certainly, I could change the  S98mldonkey-server file directly and
> also ugly. But I don't think it's a good solution. Hence, I'd like to
> know, when and how are the file /etc/profile and /etc/environment
> loaded, and where is the right place to set the system wide variables
> such as locale.
 
System-wide locale is set with 'dpkg-reconfigure locales'. If a package 
doesn't obey this then it's buggy.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: