On Tue Jul 25 11:30:17 2023 +0000, Piotr Caban wrote:
Isn't it better to remove sname_size parameter and assume that passed buffer length is LOCALE_NAME_MAX_LENGTH? The size checks should not be needed since locale name always fits into LOCALE_NAME_MAX_LENGTH buffer.
Done. Should I add a comment to the top of locale_to_sname indicating that it expects the buffer to be at least LOCALE_NAME_MAX_LENGTH?