Warn if no locale is set (#1474)