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


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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sun 31 Jul 2011 09:44:25 PM UTC, comment #2:

best student credit cards
credit cards for college students
student credit cards with no credit
what is a student credit card
free student credit cards

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



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 Aug 2007 11:01:00 PM UTChaibleStatusNone=>Confirmed
    Wed 29 Aug 2007 10:10:59 PM UTChaibleAssigned toNone=>haible

    Back to the top

    Powered by Savane 3.1-cleanup