bug-tar
[Top][All Lists]
Advanced

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

Re: [PATCH] set locale to avoid xgettext error


From: Matteo Croce
Subject: Re: [PATCH] set locale to avoid xgettext error
Date: Thu, 24 Oct 2024 19:42:25 +0200

Il giorno mar 22 ott 2024 alle ore 13:05 Matteo Croce
<technoboy85@gmail.com> ha scritto:
>
> From: Matteo Croce <teknoraver@meta.com>
>
> The source file src/checkpoint.c contains a comment with a non ASCII
> character, i.e. the Spanish word "comprobaciĆ³n".
> This makes xgettext fail with the following error:
>
>     /usr/bin/xgettext: Non-ASCII comment at or before src/checkpoint.c:251.
>                        Please specify the source encoding through --from-code.
>     make[3]: *** [Makefile:307: tar.pot-update] Error 1
>
> Fix this by specifying UTF-8 as source code locale.
> ---

I see that in this commit, you removed a non-ASCII character from a comment.
That was triggering the same build failure I'm experiencing with the
word "comprobaciĆ³n".
What is the rule here, remove the non ANSII characters, or we can set
the encoding to utf8?
The commit was:

commit 005e345c04a4375f0b2aeacf93cf2bafcd2fe200
Author: Paul Eggert <eggert@cs.ucla.edu>
Date:   Sun Aug 18 22:40:43 2024 -0700

    Fix non-ASCII in sparse.c

Regards,
-- 
Matteo Croce

perl -e 'for($t=0;;$t++){print chr($t*($t>>8|$t>>13)&255)}' |aplay



reply via email to

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