[Pkg-Cyrus-imapd-Debian-devel] Patch to update %d -> %lu

Sven Mueller pkg-cyrus-imapd-debian-devel@lists.alioth.debian.org
Mon, 20 Jun 2005 18:10:49 +0200


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig9FCCB4A21B527898AE7C93BD
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Ondrej Sury wrote on 20/06/2005 15:09:
> On Mon, 2005-06-20 at 14:10 +0200, Sven Mueller wrote:
> 
>>z (size_t) doesn't seem to be supported on all systems. Is there a
>>good reason to switch upstream source to %zu? I don't see one, but
>>maybe I'm blind.
> 
> 
> No, it was just a thought when I was looking at contents of .diff.gz...
> 
> There could be hypothetic problem with retyping to (unsigned long) if
> size_t is bigger then int32 on some platform (amd64?).
> 
> Do you know which platforms doesn't support "z" (size_t)?  I guess this
> could be platforms not using glibc as base libc library?

Nope, I don't even think it would effect Debian, since I know that z
(size_t) is supported on the BSD port and assume it is supported on Hurd
(as Hurd is probably using the same libc and compiler sources as Linux
does). If you think this is usefull, by all means, go ahead and change
the sources, but please do so consistently (i.e. create a patch which
fixes all occurences of typecasts from size_t variables, even in
upstream source, and submit a patch to change upstream source like that
to the upstream BTS).

cu,
sven

--------------enig9FCCB4A21B527898AE7C93BD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (Cygwin)

iD8DBQFCtuqJg3izVowCbSERApY8AKDLbJvbRDNGmYHh4nwxJXAnHVld+gCgsGkn
pG1Q+gd69CFuZScxOt/395o=
=BPRh
-----END PGP SIGNATURE-----

--------------enig9FCCB4A21B527898AE7C93BD--