GNU bug report logs - #11494
Accidental format string prevents translation

Previous Next

Package: coreutils;

Reported by: Ivan Vilata i Balaguer <ivan <at> selidor.net>

Date: Wed, 16 May 2012 22:56:02 UTC

Severity: normal

Merged with 11470, 11471, 11472, 11483, 11740

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11494 in the body.
You can then email your comments to 11494 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#11494; Package coreutils. (Wed, 16 May 2012 22:56:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ivan Vilata i Balaguer <ivan <at> selidor.net>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 16 May 2012 22:56:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ivan Vilata i Balaguer <ivan <at> selidor.net>
To: bug-coreutils <at> gnu.org
Subject: Accidental format string prevents translation
Date: Thu, 17 May 2012 00:48:37 +0200
Hi, in coreutils 8.17 (and in current git), `fmt.c` contains the following
help line:

    -g, --goal=WIDTH          goal width (default of 93% of width)

The percent is interpreted (at least by `msgfmt`) as the start of a `%o`
format string, thus translations are forced to have an "o" after `93%` which
makes things quite difficult. ;)

Changing `93%` by `93%%` should do the job.  Thanks,

-- 
Ivan Vilata i Balaguer -- https://elvil.net/




Information forwarded to bug-coreutils <at> gnu.org:
bug#11494; Package coreutils. (Wed, 16 May 2012 23:11:02 GMT) Full text and rfc822 format available.

Message #8 received at 11494 <at> debbugs.gnu.org (full text, mbox):

From: Eric Blake <eblake <at> redhat.com>
To: Ivan Vilata i Balaguer <ivan <at> selidor.net>
Cc: 11494 <at> debbugs.gnu.org
Subject: Re: bug#11494: Accidental format string prevents translation
Date: Wed, 16 May 2012 17:10:13 -0600
[Message part 1 (text/plain, inline)]
forcemerge 11470 11494
thanks

On 05/16/2012 04:48 PM, Ivan Vilata i Balaguer wrote:
> Hi, in coreutils 8.17 (and in current git), `fmt.c` contains the following
> help line:
> 
>     -g, --goal=WIDTH          goal width (default of 93% of width)
> 
> The percent is interpreted (at least by `msgfmt`) as the start of a `%o`
> format string, thus translations are forced to have an "o" after `93%` which
> makes things quite difficult. ;)
> 
> Changing `93%` by `93%%` should do the job.  Thanks,

Thanks for the report; however, you're the fifth person to report this
in 48 hours, and it has already been fixed in current git:
http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=e2bd5cda0a34

-- 
Eric Blake   eblake <at> redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

Forcibly Merged 11470 11471 11472 11483 11494. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Wed, 16 May 2012 23:11:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 15 Jun 2012 11:24:02 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Tue, 19 Jun 2012 14:55:02 GMT) Full text and rfc822 format available.

Forcibly Merged 11470 11471 11472 11483 11494 11740. Request was from Eric Blake <eblake <at> redhat.com> to control <at> debbugs.gnu.org. (Tue, 19 Jun 2012 14:55:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 18 Jul 2012 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 343 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.