x11: Fix use of clobbered return value from setlocale().
ttf: Add some logging.