I thought this worked for me (which is why I wrote this answer here), but later I realized that now this does not work on dev (OSX). (So I just edited this answer) You can try anyway:
1.) installation of locales on a real server (with root privileges):
aptitude install debconf dpkg-reconfigure locales
2.) change:
setlocale(LC_TIME, 'de_DE')
to
setlocale(LC_TIME, 'de_DE.UTF8')
The reason this doesn't work for me seems to be that on OSX the locale is called "de_DE.utf-8", whereas on a debian machine it is called "de_DE.UTF8".
stoefln
source share