Dave
Wheeler mentioned "detox" as a utility that already existed, to clean up filenames for linux and other *nix. Detox is written in C and Yacc and has a BSD
license. I downloaded and tested. First a dry run using
Code:
detox -n File_with_swedish_charts > outfile
See attached files. This shows what detox suggested to do. Space becomes "_", "(" and ")" becomes "-", "å","ä" and "ö" becomes "a","a" and "o", etc. So I went ahead, let detox change the filenames, and as expected
OpenCPN had no more problems.
Sugestion: Instead of reinventing the
wheel, use detox, one way or another, for posix-like systems. Link here
detox software at SourceForge
Thomas