Heh. Never heard of that Hofstadter guy before. However I immediately liked Hofstadter’s law:
It always takes longer than you expect, even when you take into account Hofstadter’s Law.
So much wisdom in only a few words! It should be printed on a T-Shirt, or a Poster, or be the first chapter of every “IT Project Management in 10 easy lessons” handbook.
Business as usual. New feature developed, tested, packed and ready to go. Let me just deploy it to production, smoke test aaaand …. damn! What happened to the currency symbols!?
In my particular case, PHP’s setlocale() returned false – so obviously those darned locales stroke again. SearchEngineOfYourChoice(TM) to the rescue!
Luckily even I was ably to fix this problem quickly without needing to contact the Admins (who wouldn’t have been in the office anyway):
$ locale -a
Aha! It was missing almost all locales. However adding them is quite easy:
$ sudo dpkg-reconfigure locales
Generating locales (this might take a while)...
The dialog that appears after running this command shouldn’t be a problem at all, so I don’t mention it further here. Just select the locales you need there and go for it.
Afterwards check the results by again doing
$ locale -a
That’s already it. Don’t forget to restart your webserver!