This is the mail archive of the cygwin-developers mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: CYGWIN=codepage? Or LC_CTYPE=foo?


On Apr  7 13:38, Brian Dessent wrote:
> > What about calling this tool only once in a postinstall script and
> > creating a file /etc/sysconfig/i18n from the output which then gets
> > evaluated in /etc/profile.d/lang.sh or lang.csh?
> 
> I assume the desire here is to minimize login shell startup time
> penalty?  It's still an extra file to find/stat/source, and I doubt the
> runtime of the tool would be more than a couple of w32api calls.  Doing
> it once would also fail to catch cases where the user changes their
> Windows locale.
> 
> I think we can keep the performance in check by adding the logic to the
> base-files' 'profile' rather than adding a new file to profile.d, since
> that must be executed anyway regardless.

Which means, every shell package has to be changed to call the tool
in the profiles which come with the shell.  Adding profile.d/*.c?sh
files does not require this.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]