I think the real bug here is having no validation for the encoding given
with the '-e' option. You should be allowed to use 'utf8', 'utf-8',
'utf_8' or any recognized alias. This is now fixed upstream and will be
included in the next release (0.14.1 or 0.15).

commit e33f568d883d16254855d47fdb24baf1147f0f0d
Author: Osmo Salomaa <[email protected]>
Date:   Mon Apr 13 16:10:32 2009 +0300

    Add validation for encoding argument '-e'.
    
    If an encoding argument was given on the command line using the '-e'
    option and its value was not 'auto', translate the value using
    encodings.aliases. If the given encoding is not valid and not a known
    alias, exit with an error message.

I'll put the lacking exception messages on the todo-list. There's a
whole lot more of them than just these in gaupol/encodings.py.

-- 
Osmo Salomaa <[email protected]>




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to