21139: Fix mixed-case tile variants.
authorTom Clegg <tom@curii.com>
Fri, 3 Nov 2023 14:33:19 +0000 (10:33 -0400)
committerTom Clegg <tom@curii.com>
Fri, 3 Nov 2023 14:33:19 +0000 (10:33 -0400)
refs #21139

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

taglib.go

index 36e1d2775d6b8372e63ef0bddd065dbdc580fc1d..892dafc2b37049c92884baee6762b07206c008af 100644 (file)
--- a/taglib.go
+++ b/taglib.go
@@ -64,6 +64,10 @@ func (taglib *tagLibrary) FindAll(in *bufio.Reader, passthrough io.Writer, fn fu
                }
 
                if passthrough != nil {
+                       if base >= 'A' && base <= 'Z' {
+                               // lowercase for passthrough
+                               base += 'a' - 'A'
+                       }
                        _, err = passthrough.Write([]byte{base})
                        if err != nil {
                                return err