astropy/astropy — pull request #1245 by nudomarinero (2013-07-10 23:50:55+00:00)
Title: Avoid errors with logging in some systems 

In some systems the output of locale.getpreferredencoding() can be an empty string. Feeding the empty string to "decode" will raise an error. This patch avoid the input of an empty string to decode in these cases.