Convert sys.argv to Unicode (using a configurable encoding)
authorW. Trevor King <wking@tremily.us>
Sun, 20 Jan 2013 13:26:54 +0000 (08:26 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 20 Jan 2013 18:05:18 +0000 (13:05 -0500)
commit7b526cffafc75b02c4a00bd34ba5bbdf4b221335
tree4e073dc0ba749e1ca78f66eec8bb04e814f420cd
parenta315fb1c4107d736940fc22f0b0927294d6aa7e4
Convert sys.argv to Unicode (using a configurable encoding)

In Python 3, sys.argv is already Unicode, but there's no clean way to
do this automatically in Python 2 [1].  If your system doesn't use
UTF-8 for it's argv encoding, you should set system.argv-encoding in
your ~/.mutt-ldap.rc.  For example, if your system uses UTF-16, try:

  [system]
  argv-encoding = utf-16

[1]: http://bugs.python.org/issue2128
mutt-ldap.py