Filter some more potential filename contents on Windows.
[libdcp.git] / 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;
 }