libvirt/daemon
Eric Blake 981d2cdab4 maint: improve i18n on non-Linux
Per the gettext developer:
http://lists.gnu.org/archive/html/bug-gnu-utils/2010-10/msg00019.html
http://lists.gnu.org/archive/html/bug-gnu-utils/2010-10/msg00021.html

gettext() doesn't work correctly on all platforms unless you have
called setlocale().  Furthermore, gnulib's gettext.h has provisions
for setting up a default locale, which is the preferred method for
libraries to use gettext without having to call textdomain() and
override the main program's default domain (virInitialize already
calls bindtextdomain(), but this is insufficient without the
setlocale() added in this patch; and a redundant bindtextdomain()
in this patch doesn't hurt, but serves as a good example for other
packages that need to bind a second translation domain).

This patch is needed to silence a new gnulib 'make syntax-check'
rule in the next patch.

* daemon/libvirtd.c (main): Setup locale and gettext.
* src/lxc/lxc_controller.c (main): Likewise.
* src/security/virt-aa-helper.c (main): Likewise.
* src/storage/parthelper.c (main): Likewise.
* tools/virsh.c (main): Fix exit status.
* src/internal.h (DEFAULT_TEXT_DOMAIN): Define, for gettext.h.
(_): Simplify definition accordingly.
* po/POTFILES.in: Add src/storage/parthelper.c.
2010-11-17 10:12:57 -07:00
..
.gitignore Add dtrace static probes in libvirtd 2010-10-22 12:00:39 +01:00
dispatch.c daemon: Include stdlib.h in dispatch.c 2010-11-14 22:21:21 +01:00
dispatch.h Remote driver & daemon impl of new event API 2010-03-26 13:52:29 +00:00
event.c Convert daemon/events.c to use virMutex and virThread 2010-11-11 16:03:15 +00:00
event.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
libvirtd.aug Basic framework for auditing integration 2010-10-19 17:31:31 +01:00
libvirtd.c maint: improve i18n on non-Linux 2010-11-17 10:12:57 -07:00
libvirtd.conf Basic framework for auditing integration 2010-10-19 17:31:31 +01:00
libvirtd.h Include socket address in client probe data 2010-10-22 12:00:45 +01:00
libvirtd.init.in daemon: Export SDL audio environment variables 2010-05-21 12:48:34 -04:00
libvirtd.lxc.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.pod.in man pages: update authors and copyright notice for libvirtd and virsh 2010-07-17 04:51:01 +10:00
libvirtd.policy-0 Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.policy-1 Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.qemu.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
libvirtd.sasl Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.stp Include socket address in client probe data 2010-10-22 12:00:45 +01:00
libvirtd.sysconf daemon: sysconf: Update comment about VNC audio 2010-05-26 10:51:36 -04:00
libvirtd.uml.logrotate.in Change logrotate to be per-hypervisor logs 2010-03-10 11:27:02 +01:00
Makefile.am maint: use gnulib configmake rather than open-coding things 2010-11-17 08:58:58 -07:00
mdns.c Rename daemon main code 2009-09-21 14:41:45 +01:00
mdns.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
probes.d Include socket address in client probe data 2010-10-22 12:00:45 +01:00
qemu_dispatch_args.h Qemu remote protocol. 2010-07-23 17:30:33 -04:00
qemu_dispatch_prototypes.h Qemu remote protocol. 2010-07-23 17:30:33 -04:00
qemu_dispatch_ret.h Qemu remote protocol. 2010-07-23 17:30:33 -04:00
qemu_dispatch_table.h Qemu remote protocol. 2010-07-23 17:30:33 -04:00
remote_dispatch_args.h Remote driver client and server for virDomainOpenConsole 2010-11-11 16:02:46 +00:00
remote_dispatch_prototypes.h Remote driver client and server for virDomainOpenConsole 2010-11-11 16:02:46 +00:00
remote_dispatch_ret.h vcpu: implement the remote protocol 2010-10-19 10:02:33 -06:00
remote_dispatch_table.h Remote driver client and server for virDomainOpenConsole 2010-11-11 16:02:46 +00:00
remote_generate_stubs.pl Qemu remote protocol. 2010-07-23 17:30:33 -04:00
remote.c Remote driver client and server for virDomainOpenConsole 2010-11-11 16:02:46 +00:00
remote.h Ensure remote daemon unions are always non-zero length 2010-09-10 11:14:51 +01:00
stream.c Fix busy-wait loop on closed file descriptor 2010-11-11 16:03:26 +00:00
stream.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
test_libvirtd.aug Basic framework for auditing integration 2010-10-19 17:31:31 +01:00
THREADING.txt Move libvirtd event loop into background thread 2009-11-03 14:45:43 -05:00