Filter some more potential filename contents on Windows. v1.8.35
authorCarl Hetherington <cth@carlh.net>
Sat, 3 Dec 2022 22:20:18 +0000 (23:20 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 3 Dec 2022 23:39:15 +0000 (00:39 +0100)
src/name_format.cc

index e5c6556e9ae9a6b43fbbb6f65288b2f7ec00bb73..dce0935bb2f92f673669b03c532a818106167182 100644 (file)
@@ -55,6 +55,11 @@ filter (char c)
        } else if (c == ' ') {
                c = '_';
        }
+#ifdef LIBDCP_WINDOWS
+       else if (c == '?' || c == '.') {
+               c = '_';
+       }
+#endif
 
        return c;
 }