* [bug#35593] [PATCH] uuid: Pad resulting FAT uuid string with leading zeroes.
@ 2019-05-05 21:43 Danny Milosavljevic
2019-05-09 10:10 ` bug#35593: " Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Danny Milosavljevic @ 2019-05-05 21:43 UTC (permalink / raw)
To: 35593
Fixes <https://bugs.gnu.org/35582>.
Reported by sirgazil <sirgazil@zoho.com>.
* gnu/system/uuid.scm (fat-uuid->string): Pad resulting string with leading
zeroes.
---
gnu/system/uuid.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/system/uuid.scm b/gnu/system/uuid.scm
index f13960c3e9..7204d163d0 100644
--- a/gnu/system/uuid.scm
+++ b/gnu/system/uuid.scm
@@ -175,7 +175,7 @@ ISO9660 UUID representation."
"Convert FAT32/FAT16 UUID, a 4-byte bytevector, to its string representation."
(let ((high (bytevector-uint-ref uuid 0 %fat-endianness 2))
(low (bytevector-uint-ref uuid 2 %fat-endianness 2)))
- (format #f "~:@(~x-~x~)" low high)))
+ (format #f "~:@(~4,'0x-~4,'0x~)" low high)))
(define %fat-uuid-rx
(make-regexp "^([[:xdigit:]]{4})-([[:xdigit:]]{4})$"))
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#35593: [PATCH] uuid: Pad resulting FAT uuid string with leading zeroes.
2019-05-05 21:43 [bug#35593] [PATCH] uuid: Pad resulting FAT uuid string with leading zeroes Danny Milosavljevic
@ 2019-05-09 10:10 ` Ludovic Courtès
2019-05-09 12:46 ` [bug#35593] " Danny Milosavljevic
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-05-09 10:10 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: 35593-done
Hi Danny,
Danny Milosavljevic <dannym@scratchpost.org> skribis:
> Fixes <https://bugs.gnu.org/35582>.
> Reported by sirgazil <sirgazil@zoho.com>.
>
> * gnu/system/uuid.scm (fat-uuid->string): Pad resulting string with leading
> zeroes.
Bah, I feel guilty: I pushed the same patch with a test as
6c5790a2faf8ffc401e43b13425a707394e40874, and only now do I notice that
you had fixed it too. My apologies!
Perhaps in the future you should send the patch directly in the bug
report? That would increase the likelihood that I’ll notice and won’t
duplicate work.
(Perhaps in the future I should also pay more attention to email…
tricky!)
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#35593] [PATCH] uuid: Pad resulting FAT uuid string with leading zeroes.
2019-05-09 10:10 ` bug#35593: " Ludovic Courtès
@ 2019-05-09 12:46 ` Danny Milosavljevic
0 siblings, 0 replies; 3+ messages in thread
From: Danny Milosavljevic @ 2019-05-09 12:46 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 35593-done
[-- Attachment #1: Type: text/plain, Size: 731 bytes --]
Hi Ludo,
On Thu, 09 May 2019 12:10:55 +0200
Ludovic Courtès <ludo@gnu.org> wrote:
> > Fixes <https://bugs.gnu.org/35582>.
> > Reported by sirgazil <sirgazil@zoho.com>.
> >
> > * gnu/system/uuid.scm (fat-uuid->string): Pad resulting string with leading
> > zeroes.
>
> Bah, I feel guilty: I pushed the same patch with a test as
> 6c5790a2faf8ffc401e43b13425a707394e40874, and only now do I notice that
> you had fixed it too. My apologies!
Don't worry. It's good that someone fixes it, doesn't matter whether it's you
or me :)
> Perhaps in the future you should send the patch directly in the bug
> report? That would increase the likelihood that I’ll notice and won’t
> duplicate work.
Sure!
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-09 12:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-05 21:43 [bug#35593] [PATCH] uuid: Pad resulting FAT uuid string with leading zeroes Danny Milosavljevic
2019-05-09 10:10 ` bug#35593: " Ludovic Courtès
2019-05-09 12:46 ` [bug#35593] " Danny Milosavljevic
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).