[Python-Dev] gettext may fail to find .mo file (was Re: [PATCH] gettext)
Peter Funk
pf@artcom-gmbh.de
Mon, 16 Oct 2000 09:23:11 +0200 (MEST)
Hi Ulf,
Ulf Betlehem:
[...]
> ok, I compiled 2.0c1 and tried gettext. Now, there seems to be
> a bug in the "normalize and expand" code that can prevent
> gettext from finding an existing .mo file. The normalization
> is done using a dictionary and therefore the languages get
> reordered (as dict keys do). Later when selecting language the
> function returns None if 'C' happens to come before the
> required languages. I've included a patch to fix this.
Your patch looks good to me. Thanks for taking the time to test and
contributing the patch. I've submitted your bug report and your
patch to sourceforge.
See:
https://sourceforge.net/bugs/?func=detailbug&bug_id=116964&group_id=5470
https://sourceforge.net/patch/?func=detailpatch&patch_id=101928&group_id=5470
Regards, Peter
P.S.: Cc to python-dev
--
Peter Funk, Oldenburger Str.86, D-27777 Ganderkesee, Germany, Fax:+49 4222950260
office: +49 421 20419-0 (ArtCom GmbH, Grazer Str.8, D-28359 Bremen)