bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] xgettext --from-code does not work


From: Daiki Ueno
Subject: Re: [bug-gettext] xgettext --from-code does not work
Date: Tue, 01 Apr 2014 12:09:06 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hi,

address@hidden writes:

> the message "please specify the source encoding through --from-code"
> is totally
> frustrating, because the valid codepage is specified and it does not
> work.
>
> ================================================================
> xgettext -k_ "--from-code=WINDOWS-1250" -o ref.po ../sources.cc/*.cc
> ./dump.c
> ../sources.cc/igettext.cc:155: warning: Empty msgid.  It is reserved
> by GNU gettext:
>                                         gettext("") returns the header
> entry with
>                                         meta information, not the
> empty string.
> xgettext: Non-ASCII string at ../sources.cc/wp2latex.cc:438.
>           Please specify the source encoding through --from-code.
> make: *** [ref.po] Error 1

Briefly looking at the source, maybe --from-code=CP1250 will work.

There could be couple of improvements here: (1) in the error message,
explicitly state that the specified encoding is not valid, and (2) use
the same encoding scheme as iconv, and/or add an option to list
available encodings.

Regards,
--
Daiki Ueno



reply via email to

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