[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdesdk/scripts
From:       Oswald Buddenhagen <ossi () kde ! org>
Date:       2012-01-20 9:20:04
Message-ID: 20120120092004.GA14709 () ugly ! local
[Download RAW message or body]

On Thu, Jan 19, 2012 at 06:42:52PM -0500, Michael Pyne wrote:
> On Thursday, January 19, 2012 20:19:47 Oswald Buddenhagen wrote:
> > On Thu, Jan 19, 2012 at 06:38:40PM +0100, David Faure wrote:
> > > -LANG=C $MAKE "${args[@]}"
> > > +LANG=en_US.UTF-8 $MAKE "${args[@]}"
> > 
> > that's very dangerous. keep lang at C and set LC_CTYPE to the above.
> > this is actually my everyday locale setting and it works great.
> 
> Is this the general recommendation when screen-scraping/reading the output of 
> commands and passing in filenames?
> 
yes. portable to anything POSIX.1-2001 according to locale(7).
note that from this also follows that all other LC_* category variables need to
be actively overridden to C or unset, and LC_ALL definitely must be unset. LANG
can be either set to C or unset, too.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic