Re: [RFC PATCH] build: avoid %zu in translated strings

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

 



Hi Eric,

> after looking into this deeper, it (happily) appears that I
> may have been mistaken.  It looks like the gnulib vasprintf module
> _already_ performs printf parsing on mingw; and that as a virtue of that
> printf parsing, %zu and %llu are already rewritten into modifiers
> understood by mingw.

And if this were not the case, I would recommend to you to use

  #include <inttypes.h>
  printf ("%" PRIuPTR, (uintptr_t) size_t_value);

with the gnulib module 'inttypes' (LGPLv2+).

If someone insists on a guarantee that
  printf ("%zu", size_t_value);
works, he needs the 'printf-posix' module, which is not available under
LGPLv2.

I'm reluctant to move all of 'printf-posix', 'fprintf-posix',
'sprintf-posix' to LGPLv2+, including the auxiliary modules
fseterr, isnand-nolibm, isnanl-nolibm, frexp-nolibm, frexpl-nolibm,
printf-frexp, printf-frexpl, signbit, fpucw, because this is a
significant piece of code, and LGPLv3+ has benefits over LGPLv2+ for us.

Bruno

--
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]