Who reads the comment line on /etc/profile ?

This is for bugs in a version of Puppy 5.x that is still under development. If you have bugs for a released version of Puppy, please post them in the forum's main Bugs section, not here. Bugs are when a program does not function as intended. Usability issues are not bugs.
Post Reply
Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Who reads the comment line on /etc/profile ?

#1 Post 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

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

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

#2 Post 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 '='`"

Post Reply