Page 1 of 1

Who reads the comment line on /etc/profile ?

Posted: Thu 11 Jun 2009, 11:58
by shinobar
/etc/profile has the comment at line 88 (upup-476)

Code: Select all

#LANG=en_US.utf8 w004 going back to non-utf8...
I am not sure but occasionally it is read and the locale is set to
en_US.utf8 w004 going back to non-utf8...
what program is reading this comment line other than /usr/sbin/shooselocale

Re: Who reads the comment line on /etc/profile ?

Posted: Mon 15 Jun 2009, 02:47
by shinobar
shinobar wrote:what program is reading this comment line
Well... I found it out.

Code: Select all

# diff /usr/bin/xwin.org /usr/bin/xwin
13a14
> # 15jun09 bugfix reading LANG envronment from the comment lines of /etc/profile
482c483
<   NEWLANG="`cat /etc/profile | grep "LANG=" | cut -f 2 -d '='`"
---
>   NEWLANG="`cat /etc/profile | grep '^[ ]*LANG=' | tail -n 1| cut -f 2 -d '='`"