summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}