Dwayne Bailey dwayne+pythonb...@translate.org.za added the comment:
This is causing a regression in our code.
Previously when we write out our INI file for an entry that has a value of None
we saw the following:
value = None
These are now stored as:
value
This is now causing a traceback
Dwayne Bailey dwayne+pythonb...@translate.org.za added the comment:
@haypo: The encoding works and doesn't throw and error, my guess is that
aliases should be updated to cover the variant namings of -R and -U.
I also found glibc points to this reference
http://cad.ntu-kpi.kiev.ua/multiling/koi8
New submission from Dwayne Bailey dwayne+pythonb...@translate.org.za:
u = unicode(bob, KOI8-RU)
Traceback (most recent call last):
File stdin, line 1, in module
LookupError: unknown encoding: KOI8-RU
This could be broadened to see that we support all encodings that are
supported by iconv
Changes by Dwayne Bailey dwayne+pythonb...@translate.org.za:
--
nosy: +dwayne
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2504
___
___
Python
New submission from Dwayne Bailey [EMAIL PROTECTED]:
The following code in optparse:
if len(rargs) nargs:
if nargs == 1:
self.error(_(%s option requires an argument) % opt)
else:
self.error(_(%s option requires
Dwayne Bailey [EMAIL PROTECTED] added the comment:
Mmm some problems with my head late at night. This patch sorts things
out and makes sure strings can be extracted by xgettext
Added file:
http://bugs.python.org/file12108/optparse_proper_gettext_plurals.diff