Bug 512821

Summary: Some files are missing if one of the files has broken character sequence in filename
Product: [Applications] kid3 Reporter: unknown.at.github
Component: generalAssignee: Urs Fleisch <ufleisch>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.9.x   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: File generation script

Description unknown.at.github 2025-12-01 01:37:35 UTC
Created attachment 187278 [details]
File generation script

SUMMARY

I am trying to add tags to 20 files, but only 6 of them are present. One of the files has invalid character in filename, somehow breaking the others.

STEPS TO REPRODUCE

1. Run attached script, which will generate 20 flac tracks in current directory, last one has "broken" name
2. Open directory in kid3 (or kid3-cli)

OBSERVED RESULT

Only 6 files present:

kid3-cli> ls
      Disc 3
  -2- 01 Main Title (Remix - Short).flac
  -2- 05 Little Box Of Sand.flac
  -2- 06 Closure.flac
  -2- 13 House Organ - Irrational Fear.flac
  -2- 14 Bricks.flac
  -2- 15 Piano on the Tack.flac

EXPECTED RESULT

All files are present

kid3-cli> ls
      Disc 3
  -2- 01 Main Title (Remix - Short).flac
  -2- 02 JJ's Diner.flac
  -2- 03 Post-Modern Posse.flac
  -2- 04 Mother Genes.flac
  -2- 05 Little Box Of Sand.flac
  -2- 06 Closure.flac
  -2- 07 Quest For Swath.flac
  -2- 08 Roadblock.flac
  -2- 09 Home Sweet Home.flac
  -2- 10 The Imposter.flac
  -2- 11 A Brief History Of Fox.flac
  -2- 12 Number 42.flac
  -2- 13 House Organ - Irrational Fear.flac
  -2- 14 Bricks.flac
  -2- 15 Piano on the Tack.flac
  -2- 16 Fair Warning.flac
  -2- 17 Star Crossed Bullets.flac
  -2- 18 A Gift.flac
  -2- 19 The Patriarch.flac
  -2- 20 A Mother'$'\222''s Abduction.flac


SOFTWARE/OS VERSIONS

Kid3: 3.9.7
KDE Frameworks: 6.13.0
Qt: Using 6.8.2 and built against 6.8.2
Debian GNU/Linux 13 (trixie) (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.12.57+deb13-amd64

ADDITIONAL INFORMATION

Broken filename was produced by shnsplit from cue sheet. Issue is also present in Ubuntu 25.10 and Alpine 3.22.2.