bugGNU gettext - Bugs: bug #20923, xgettext generates .pot files with...


You are not allowed to post comments on this tracker with your current authentication level.

bug #20923: xgettext generates .pot files with charset set to CHARSET

Submitted by:  None
Submitted on:  Tue 28 Aug 2007 05:42:36 PM UTC  
Category:  Programmer tools Severity:  3 - Normal
Item Group:  None Status:  Confirmed
Privacy:  Public Assigned to:  Bruno Haible <haible>
Open/Closed:  Open

  Spam posted by anonymous
Wed 29 Aug 2007 10:10:59 PM UTC, comment #1:

Indeed there is a problem:

$ cat > x.c
gettext ("hallo world");

$ xgettext -o foo.pot x.c
$ msgen foo.pot > en.po
$ msgcat en.po
en.po: warning: Charset "CHARSET" is not a portable encoding name.
Message conversion to user's charset might not work.
msgcat: present charset "CHARSET" is not a portable encoding name

I eee it more as a bug in 'msgen'.

Bruno Haible <haible>
Project AdministratorIn charge of this item.
Tue 28 Aug 2007 05:42:36 PM UTC, original submission:

This makes it hard to process the .pot file with the other gettext tools:

For example, generating a default translation with msgen works, but the generated default.po file can't be processed with msgfmt since the charset is not set.

Is there a way around that?

Otherwise it would make sense to provide the -t argument for xgettext and allow users to specify the charset for the .pot file.

Felix Berger



No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-26 haible CategoryNone => Programmer tools
    2007-08-29 haible StatusNone => Confirmed
    2007-08-29 haible Assigned toNone => haible

    Back to the top

    Powered by Savane 3.4