Debugging locale problems