I was thinking about this topic, because I don't think that ODK Central exhibits this behavior for the submission CSV download: hyphens are not replaced with underscores. We try to have this output from Central match Briefcase as closely as possible, so I think we should either change this behavior in Briefcase or have Central match Briefcase.
As far as I can tell, I think it'd be safe to make this change in Briefcase:
- This behavior isn't documented in the description of the Briefcase export CSV format.
- A hyphen is used in the Briefcase filename to separate the form and the name of the repeat group. But it is the unqualified name of the repeat group that is used: if the repeat group is nested in a group or another repeat group, the name of the parent group is not included in the filename. So I don't think there's any risk of duplicate filenames by making this change.
I don't think I've encountered this substitution before, so I also don't account for it in
odkmeta, which imports Briefcase-format data into Stata.
@LN, what do you think the best approach would be?