Bug#531797: Tentative solution
I was having the same error when running ccsm or compiz.real ccp inside of a slim session as opposed to as a continuation of another login - it turned out that LANG was unset.
Try running "LANG=en_US.UTF-8 ccsm" - worked for me.
Reply to: