This is the mail archive of the
mailing list for the Cygwin project.
Re: base-files 4.0-9: LANG is set to the system default, why not the user selection?
17.02.2012 0:03, Peter Rosin ÐÐÑÐÑ:
Mike Kaganski skrev 2012-02-16 12:14:
16.02.2012 21:11, Peter Rosin ÐÐÑÐÑ:
Peter Rosin skrev 2012-02-16 06:52:
/etc/defaults/etc/profile is what creates home directory. When executed for the first time for a user, it outputs to the console:
David Sastre Medina skrev 2012-02-15 23:14:
The files under /etc/profile.d are sourced by /etc/profile, which sets
system wide settings.
For user-defined values, the place to override a system-wide setting
depends on the shell you're using. E.g., for bash, it would be
~/.bash_profile. Check /etc/skel/.bash_profile. It should include
# Set user-defined locale
export LANG=$(locale -uU)
Probably you have a customized ~/.bash_profile, so updating to
base-files-4.0-9 didn't replace it.
Hmmm, ok, that doesn't completely match what I'm seeing in my $HOME, my
.bash_profile *looks* (who am I to tell, it's attached) unmodified from
4.0-6, so just a quick question, what postinstall script is responsible
for moving the updated skel files into $HOME? I couldn't find any, but
admittedly didn't spend much time looking...
I located base-files-4.0-6.tar.bz2 and my copy in $HOME is indeed not
modified. So, your assertion that customization was preventing the
update seems wrong (the date of my .bash_profile is consistent with my
original Cygwin installation date). I question whether the skel files
are automatically copied to the home directory at any other time than
at home directory creation. Are they?
PS. I have modified ~/.bashrc and ~/.inputrc, if that is relevant.
I believe it's /etc/profile that is populating the home directory for
new users. /etc/defaults/etc/profile is the latest version as provided
by the base-files package and will have the same content unless you
have "poisoned" /etc/profile with local edits. If you are pedantic.
Then you seem to just mock at the maintainer. It's not too polite. Yes,
it would be desirable if this effect (and the proposed steps to fix it
for those who already use this package) would be noted in the release
advertisement. Yes, sometimes even a maintainer may make mistakes on
their maintained stuff. But if you have some objections or proposals,
it's better to simply say so to people who devote their time and
knowledge to us. And append "thank you" in the end.
Copying skeleton files.
These files are for the users to personalise their cygwin experience.
They will never be overwritten nor automatically updated.
Just pay attention to what is told :)
Yes, but when the *maintainer* of that file states otherwise, who should
I pay attention to? If you read between the lines of my previous message
you would understand that I already knew this.
Look, I'm only harping on about this since the base-files maintainer
should have understood that doing a system-level change in one place
that is later supposed to be reversed by the skel files isn't going to
fly for existing installations.
Best regards, Mike.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple