[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parted 1.4.20 and PRIx64
From: |
Andrew Clausen |
Subject: |
Re: Parted 1.4.20 and PRIx64 |
Date: |
Wed, 24 Oct 2001 20:05:59 +1000 |
User-agent: |
Mutt/1.2.5i |
On Wed, Oct 24, 2001 at 09:08:10AM +0200, Martin v. Loewis wrote:
> > Grrr, that's UGLY. Why not use that %llx, (long long) trick instead?
> >
> > i.e.
> >
> > printf (_("blah blah %llx"), (long long) some_num);
>
> From a translator's perspective, this would work just as fine. I
> thought not using those formats directly was the point of the change
>
> 2001-10-14 Andrew Clausen <address@hidden>
> * libparted/disk_gpt.c: did %s/\%llx/" PRIx64 "/g
The problem with that was __u64 sometimes != (long long). So it didn't
work (without type-casting).
The point of the change was merely to get it to work in a clean way.
But [xa]sprintf()ing a format string is rather ugly, IMHO.
Andrew