[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question regarding empty msgid
From: |
Peter Landgren |
Subject: |
Re: Question regarding empty msgid |
Date: |
Fri, 15 Oct 2010 23:01:25 +0200 |
User-agent: |
KMail/1.13.3 (Linux/2.6.33.7-desktop-2mnb; KDE/4.4.3; i686; ; ) |
Den Friday 15 October 2010 21.26.03 skrev Eric Blake:
> On 10/15/2010 05:16 AM, Peter Landgren wrote:
> > Hi,
> >
> > If I do (in python):
> > print gettext("")
> > that is sending an empty string to gettext. This is not the normal, but
> > can happen by mistake.
> >
> > The header from the current *.mo file is printed.
> >
> > Is this to be regarded as a bug?
>
> The only bug in this case is the fact that you tried to translate the
> empty string. gettext() is documented as requiring a non-empty string,
> and by passing an empty string, you are violating the contract.
Yes, I understand that. We have taken care of this situation in our program
now, but we was a little
confused when it popped up.
Thanks for the info.
Peter Landgren