notice invalid locales in newlocale; fixes #2636