store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu Apr 24, 2014 1:48 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: qmail-scanner-reconfigure fails with non-English locale
Unread postPosted: Tue Aug 23, 2011 9:06 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
I recently ran into a problem where qmail-scanner-reconfigure would never finish. I found that the problem was that qmail-scanner's configure script would try to display a prompt telling the user that it didn't have a translation for the current locale and wait for the user to "[Hit <RETURN> to continue]". See lines 66-78 in /usr/share/qmail-scanner/configure. This prompt is shown even when configure is called with the --batch flag, because this check comes before the flags are read.

I first reported this as a bug upstream and the author said:

Quote:
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


And later:

Quote:
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


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?

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
 Post subject: Re: qmail-scanner-reconfigure fails with non-English locale
Unread postPosted: Fri Sep 23, 2011 9:01 am 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
Workaround:

Code:
# LANG=C qmail-scanner-reconfigure

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group