[Nix-dev] awesome locale issues

Florian Friesdorf flo at chaoflow.net
Tue Aug 24 00:03:47 CEST 2010


On Mon, Aug 23, 2010 at 09:16:05PM +0200, Eelco Dolstra wrote:
> (..)
> > And the clock widget is showing UTC instead of CEST. This was also
> > the case for awesome's default clock, i.e. should not be related to
> > the obvious widget lib.
> 
> Maybe you need to set the TZ environment variable to CEST.

that fixed the clock :)

On Mon, Aug 23, 2010 at 09:19:30PM +0200, Eelco Dolstra wrote:
> Hi,
> 
> On 08/23/2010 09:16 PM, Eelco Dolstra wrote:
> 
> > This is probably because the Glibc locales are in a separate package.  Solution:
> > 
> > $ nix-env -i glibc-locales
> > 
> > and set the environment variable LOCALE_ARCHIVE to
> > ~/.nix-profile/lib/locale/locale-archive.
> 
> Oh, another solution is to set $LOCPATH to /usr/lib/locale.  Then you don't need
> to install glibc-locales.  Instead it uses Ubuntu's own locale info.

My /etc/profile.d/nix.sh is attached. Some weird behaviour:

The setting for TZ is definitely taken from there, however, it is not
possible to set LOCPATH, the variable is empty after logging into
awesome. If I then source /etc/profile, it is set, and lua is
statisfied, but no use for awesome.

It does not matter what value I set LOCPATH to, /usr/lib/locale,
$HOME/.nix-profile/lib/locale/locale-archive, foo, it does not make it into the
logged in environment.

I guess this is an issue with ubuntu.

-- 
Florian Friesdorf <flo at chaoflow.net>
  GPG FPR: EA5C F2B4 FBBB BA65 3DCD  E8ED 82A1 6522 4A1F 4367
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nix.sh
Type: application/x-sh
Size: 698 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20100824/fa0c1997/attachment.sh 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20100824/fa0c1997/attachment.bin 


More information about the nix-dev mailing list