On Tue, 24 Jun 2014, Sven Schreiber wrote:
Hi,
I was catching errors, and when I had none I got this, so errmsg(0)
seems to return funny stuff:
<script-output>
? myerr = $error
Ersetzte Skalar myerr = 0
? print myerr
myerr = 0.0000000
? printf "Error message: %s\n", errmsg(myerr)
Error message: Project-Id-Version: gretl 1.8.0
Report-Msgid-Bugs-To:
POT-Creation-Date: 2014-06-01 15:42-0400
PO-Revision-Date: 2014-05-12 08:14-0400
Last-Translator:
Language-Team: German
Language: German
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Plural-Forms: nplurals=2; plural=(n != 1);
X-Generator: Poedit 1.5.4
</script-output>
OK, fixed in CVS. Oddly enough, what you saw is what you get if you pass
an empty string to gettext (in English the errmsg(0) return value was
empty, as you'd expect.)
Allin