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


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

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

Submitted by:  None
Submitted on:  Tue Aug 28 17:42:36 2007  
Category: Programmer toolsSeverity: 3 - Normal
Item Group: NoneStatus: Confirmed
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Open

 Spam posted by an anonymous
Wed Aug 29 22:10:59 2007, 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 Aug 28 17:42:36 2007, 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
  • -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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Nov 26 23:47:57 2016haibleCategoryNone=>Programmer tools
    Wed Aug 29 23:01:00 2007haibleStatusNone=>Confirmed
    Wed Aug 29 22:10:59 2007haibleAssigned toNone=>haible

    Back to the top

    Powered by Savane 3.1-cleanup1