os.setlocale stopped working in git?

2012-06-18 Thread Paweł Rumian
Hello,

after recent update of awesome I had troubles starting it with my
config file (it worked fine with the default one).
Some investigation lead me to the first line of my rc.lua:

os.setlocale(os.getenv(LANG))

With this line, awesome crashes at start with:

/usr/share/awesome/lib/gears/surface.lua:12: attempt to compare nil with number
/etc/xdg/awesome/rc.lua:2: loop or previous error loading module 'awful'
E: awesome: main:555: couldn't find any rc file

When I comment the os.setlocale line, everything is OK.
Why is this happening? Is there another way to get the textclock
display date in my native language?

BR,
Paweł

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.


Re: os.setlocale stopped working in git?

2012-06-18 Thread Paweł Rumian
OK, it works when I call os.setlocale after
local awful = require(awful)

I guess it is one of the recent changes in awful that causes this.
Still a very minor problem, as awful does not need to use my locale
and I can call setlocale after loading awful.

Paweł

--
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.