Hi,

[email protected] 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