summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-03 23:20:18 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-04 00:39:15 +0100
commitd6dfe05f4b39d0b5ff75185f9b00b5133b19c88e (patch)
tree49409192e6c3b100985a0a42e28697083cc21bad
parentee231792fe8ec4d4f26ad81778ca5ae6187e46be (diff)
Filter some more potential filename contents on Windows.v1.8.35
-rw-r--r--src/name_format.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/name_format.cc b/src/name_format.cc
index e5c6556e..dce0935b 100644
--- a/src/name_format.cc
+++ b/src/name_format.cc
@@ -55,6 +55,11 @@ filter (char c)
} else if (c == ' ') {
c = '_';
}
+#ifdef LIBDCP_WINDOWS
+ else if (c == '?' || c == '.') {
+ c = '_';
+ }
+#endif
return c;
}