[libvirt] [PATCH 0/2] virsh: consistent N_() usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As discussed here[1], we aren't being very smart about the use
of gettext_noop().  In particular, most packages use N_() to
mean gettext_noop rather than a synonym to _(); furthermore,
our current definition of N_() meant that we were effectively
calling gettext(gettext("string")), which has undefined results.

Patch 1/2 also fixes a potential crash due to a translation bug,
by telling xgettext to enforce that the translation of a string
later handed to printf does not violate printf constraints.

[1] https://www.redhat.com/archives/libvir-list/2010-March/msg00197.html

 [PATCH 1/2] virsh: fix existing N_ uses
 [PATCH 2/2] virsh: use N_ rather than gettext_noop

 .../0008-Step-8-of-8-Add-virsh-support.patch       |   21 +-
 src/internal.h                                     |    2 +-
 tools/virsh.c                                      |  895 ++++++++++----------
 3 files changed, 459 insertions(+), 459 deletions(-)

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]