Skip to content

Better handling of sac2c input/output names (e.g. escape spaces), resolve #2287

Sven-Bodo Scholz requested to merge sbs/sac2c:hotfix-2287 into develop

Passing file names and directory paths that contain spaces can cause the compiler to fail (usually on calls to CCP/CC/LINKER). Additionally, names with escape characters (e.g. \n or \$) would also cause compilation to fail.

With this MR we introduce mechanisms which:

  • set down a hard requirement on what characters we allow in names/paths (e.g. a-zA-Z0-9.~-_/)
  • detect and escape all space characters within the given names/paths

This MR resolves #2287 (closed).

Edited by Hans-Nikolai Viessmann

Merge request reports