Fails to record if output filename includes colon (":") (original) (raw)

Environment

Describe the bug

If the filename specified with --record parameter includes colon (:) character the app fails to create that file:

$ scrcpy --no-audio --show-touches --record="date -Iseconds.mp4" scrcpy 2.7 https://github.com/Genymobile/scrcpy INFO: ADB device found: INFO: --> (tcpip) emulator-5554 device sdk_gphone64_x86_64 /usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 207.8 MB/s (71200 bytes in 0.000s) [server] INFO: Device: [Google] google sdk_gphone64_x86_64 (Android 14) ERROR: Failed to open output file: 2024-11-14T22:57:44+02:00.mp4 ERROR: Recording failed to 2024-11-14T22:57:44+02:00.mp4

Such file name is valid on linux and nothing should prevent app from creating it.