Skip to content

Commit d8d70ee

Browse files
author
Federico Fissore
committed
Windows: ":" is an illegal char for a file name. Fixes #4026
1 parent 0102a58 commit d8d70ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arduino-core/src/cc/arduino/Compiler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ private void saveHex(String compiledSketch, String copyOfCompiledSketch, Prefere
355355
try {
356356
compiledSketch = StringReplacer.replaceFromMapping(compiledSketch, prefs);
357357
copyOfCompiledSketch = StringReplacer.replaceFromMapping(copyOfCompiledSketch, prefs);
358+
copyOfCompiledSketch = copyOfCompiledSketch.replaceAll(":", "_");
358359

359360
Path compiledSketchPath;
360361
Path compiledSketchPathInSubfolder = Paths.get(prefs.get("build.path"), "sketch", compiledSketch);

0 commit comments

Comments
 (0)