bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xgettext complains about UTF conformance of strings not marked for trans


From: Santiago Vila
Subject: xgettext complains about UTF conformance of strings not marked for translation
Date: Sun, 27 Dec 2020 18:05:54 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

Greetings.

The upload of gettext 0.21 for Debian unstable has made package "dasher",
maintained by Samuel Thibault (in Cc), not to build anymore, as reported here
by Lucas Nussbaum:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978315

We are not sure where is exactly the problem (either "dasher" or "gettext").

In short: xgettext seems to parse and complain about UTF conformance
of strings even if they are not marked for translation.

Here is a minimal test case provided by Samuel:

----- Begin forwarded message -----

€ cat test.c

#include <wchar.h>

void f(const wchar_t *str) { }

void g(void) {
        f(L"\xABCDFF");
}


€ xgettext test.c
xgettext: x-c.c:1666: phase5_get: Assertion `UNICODE_VALUE (c) >= 0 && 
UNICODE_VALUE (c) < 0x110000' failed.

Samuel

----- End forwarded message -----

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]