Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Jul 2014, 04:03
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Next Puppy Development » 5.x » Bugs (5.x dev)
Who reads the comment line on /etc/profile ?
Moderators: BarryK, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
shinobar


Joined: 28 May 2009
Posts: 2581
Location: Japan

PostPosted: Thu 11 Jun 2009, 07:58    Post subject:  Who reads the comment line on /etc/profile ?
Subject description: '#LANG=' on the comment line on /etc/profile affects at some occasion
 

/etc/profile has the comment at line 88 (upup-476)
Code:
#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
Quote:
en_US.utf8 w004 going back to non-utf8...

what program is reading this comment line other than /usr/sbin/shooselocale
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2581
Location: Japan

PostPosted: Sun 14 Jun 2009, 22:47    Post subject: Re: Who reads the comment line on /etc/profile ?
Subject description: '#LANG=' on the comment line on /etc/profile affects at some occasion
 

shinobar wrote:
what program is reading this comment line

Well... I found it out.
Code:
# 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 '='`"
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Next Puppy Development » 5.x » Bugs (5.x dev)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0419s ][ Queries: 11 (0.0056s) ][ GZIP on ]