I first reported this as a bug upstream and the author said:
And later:It's always assumed people manually figured out how they want to run "configure" and then simply use "--batch" to automate it. I actually think I need to change the script so that it EXITS if you tell it to use a locale that it doesn't support. In other parts of the configure script, any error results in an exit - not some fall-back on a different option, so that is actually inconsistent as it is
I think it's best if qmail-scanner-reconfigure would set the locale to en_GB (the default used when the configure script doesn't have a translation for the locale) for the call to qmail-scanner's configure?I'm going to change configure so it errors and exits if you choose an unsupported locale - more consistent with other actions. Any package installer should check the locale they are thinking of using matches one within the ./locale subdirectory, and disable the "--lang" option if there is no match. That would be safest